]> git.ipfire.org Git - thirdparty/git.git/commit
Fix deleting reflog entries from HEAD reflog
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2008 06:21:25 +0000 (23:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2008 06:21:25 +0000 (23:21 -0700)
commit55beff4f536011e5d7f17ae63911f1bb56308feb
tree63868faf3b0347dc3750be3882847ffb8c138351
parent38881a9066fcb3ce6e0438e6d7b20cce22ece411
Fix deleting reflog entries from HEAD reflog

dwim_ref() used to resolve HEAD symbolic ref to its target (i.e. current
branch).  This incorrectly removed the reflog entry from the current
branch when 'git reflog delete HEAD@{1}' was asked for.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-reflog.c
t/t1410-reflog.sh