t5516: more tests for receive.denyCurrentBranch=updateInstead
[gitweb.git] / t / t1410-reflog.sh
index e4409e38df7b19d64ed27495fb60da0ad44e85fd..976c1d4277ba902cd5b592c9bcbf72c7b9111cd3 100755 (executable)
@@ -245,6 +245,14 @@ 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_expect_success 'stale dirs do not cause d/f conflicts (reflogs on)' '
        test_when_finished "git branch -d a || git branch -d a/b" &&