summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSanti Béjar <santi@agolina.net>2010-12-06 11:20:11 +0100
committerJunio C Hamano <gitster@pobox.com>2010-12-06 16:57:48 -0800
commitf864f2615b76e5d74518c482ceeef3a2589017fe (patch)
tree75e63ae646daf844f2adf7c6bf8ad611b0a1e554 /Makefile
parent0b0cd0e0a29a139f418991dd769ea4266ffec370 (diff)
downloadgit-f864f2615b76e5d74518c482ceeef3a2589017fe.tar.gz
parse-remote: handle detached HEAD
get_remote_merge_branch with zero or one arguments returns the upstream branch. But a detached HEAD does no have an upstream branch, as it is not tracking anything. Handle this case testing the exit code of "git symbolic-ref -q HEAD". Reported-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Santi Béjar <santi@agolina.net> Tested-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions