author | Jeff King <peff@peff.net> | |
Fri, 27 Feb 2009 19:10:06 +0000 (14:10 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 Feb 2009 23:19:23 +0000 (15:19 -0800) | ||
commit | fbb074c25352627f650d2ea528ed694e77bece0f | |
tree | 324a0f275d71a84bb7ce645d5f28a6651649d3b6 | tree | snapshot |
parent | bc14fac825d9728c311aaa9d0aecf4960d4a3103 | commit | diff |
remote: make guess_remote_head() use exact HEAD lookup if it is available
Our usual method for determining the ref pointed to by HEAD
is to compare HEAD's sha1 to the sha1 of all refs, trying to
find a unique match.
However, some transports actually get to look at HEAD
directly; we should make use of that information when it is
available. Currently, only http remotes support this
feature.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Our usual method for determining the ref pointed to by HEAD
is to compare HEAD's sha1 to the sha1 of all refs, trying to
find a unique match.
However, some transports actually get to look at HEAD
directly; we should make use of that information when it is
available. Currently, only http remotes support this
feature.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | diff | blob | history | |
t/t5550-http-fetch.sh | diff | blob | history |