author | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 May 2008 22:09:51 +0000 (15:09 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 May 2008 22:09:56 +0000 (15:09 -0700) | ||
commit | f8fcb57bb45e8d3d8f7921377d6c2503590efc3c | |
tree | 507b5e2cd7d171006447032f031e2157e451c140 | tree | snapshot |
parent | a2f5be500839bdf75e4721cc68642b821128b7b9 | commit | diff |
show-branch --current: do not barf on detached HEAD
The code assumed that there always is the current branch, but the result
from resolve_ref() on detached HEAD does not even start with "refs/heads/".
Originally noticed and fixed by Stephan Beyer.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The code assumed that there always is the current branch, but the result
from resolve_ref() on detached HEAD does not even start with "refs/heads/".
Originally noticed and fixed by Stephan Beyer.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-show-branch.c | diff | blob | history |