diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:04 -0700 |
commit | f7f349e1383077fb9e1c03335a372b52a19ab2f0 (patch) | |
tree | af7577da1619d7d056b967f480c1c371d666488b /t | |
parent | Merge branch 'tg/tag-state-tag-name-in-editor-hints' (diff) | |
parent | checkout.c: use ref_exists instead of file_exist (diff) | |
download | tgif-f7f349e1383077fb9e1c03335a372b52a19ab2f0.tar.xz |
Merge branch 'rs/reflog-exists'
* rs/reflog-exists:
checkout.c: use ref_exists instead of file_exist
refs.c: add new functions reflog_exists and delete_reflog
Diffstat (limited to 't')
-rwxr-xr-x | t/t1410-reflog.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh index 236b13a3ab..8cab06f90a 100755 --- a/t/t1410-reflog.sh +++ b/t/t1410-reflog.sh @@ -245,4 +245,12 @@ test_expect_success 'gc.reflogexpire=false' ' ' +test_expect_success 'checkout should not delete log for packed ref' ' + test $(git reflog master | wc -l) = 4 && + git branch foo && + git pack-refs --all && + git checkout foo && + test $(git reflog master | wc -l) = 4 +' + test_done |