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>
This commit is contained in:
Junio C Hamano
2008-08-10 23:21:25 -07:00
parent 38881a9066
commit 55beff4f53
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ test_expect_success 'recover and check' '
'
test_expect_failure 'delete' '
test_expect_success 'delete' '
echo 1 > C &&
test_tick &&
git commit -m rat C &&