]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t3200-branch.sh
tests: correct "does reflog exist?" tests
[git.git] / t / t3200-branch.sh
index bf7747dc331995fe377d4943f450ea295375565e..f54a533456d74a3eb2f745dbc77c8ad5a5ae960f 100755 (executable)
@@ -228,28 +228,21 @@ test_expect_success 'checkout -b makes reflog by default' '
        git checkout master &&
        git config --unset core.logAllRefUpdates &&
        git checkout -b alpha &&
-       test -f .git/logs/refs/heads/alpha &&
-       PAGER= git reflog show alpha
+       git rev-parse --verify alpha@{0}
 '
 
 test_expect_success 'checkout -b does not make reflog when core.logAllRefUpdates = false' '
        git checkout master &&
        git config core.logAllRefUpdates false &&
        git checkout -b beta &&
-       ! test -f .git/logs/refs/heads/beta &&
-       (
-               PAGER= &&
-               export PAGER &&
-               test_must_fail git reflog show beta
-       )
+       test_must_fail git rev-parse --verify beta@{0}
 '
 
 test_expect_success 'checkout -b with -l makes reflog when core.logAllRefUpdates = false' '
        git checkout master &&
        git checkout -lb gamma &&
        git config --unset core.logAllRefUpdates &&
-       test -f .git/logs/refs/heads/gamma &&
-       PAGER= git reflog show gamma
+       git rev-parse --verify gamma@{0}
 '
 
 test_expect_success 'avoid ambiguous track' '