]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7003: use rev-parse rather than FS inspection
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 31 May 2021 16:56:26 +0000 (16:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:01:54 +0000 (10:01 +0900)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7003-filter-branch.sh

index 1349e5b2321c802faf50aed2af7d3cfee7c27974..cf30055c88dd325138f58483ce3be305692ecfbe 100755 (executable)
@@ -395,7 +395,7 @@ test_expect_success '--prune-empty is able to prune root commit' '
 test_expect_success '--prune-empty is able to prune entire branch' '
        git branch prune-entire B &&
        git filter-branch -f --prune-empty --index-filter "git update-index --remove A.t B.t" prune-entire &&
-       test_path_is_missing .git/refs/heads/prune-entire &&
+       test_must_fail git rev-parse refs/heads/prune-entire &&
        test_must_fail git reflog exists refs/heads/prune-entire
 '