t7003: use rev-parse rather than FS inspection
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>
Han-Wen Nienhuys committed
May 31, 2021 at 16:56 UTC
fdc8acc7066650b967d8957bc24d58eb54b537f8
1 file changed
+1
-1
t/t7003-filter-branch.sh
+1
-1
@@ -395,7 +395,7 @@ test_expect_success '--prune-empty is able to prune root commit' '
395
test_expect_success '--prune-empty is able to prune entire branch' '
396
git branch prune-entire B &&
397
git filter-branch -f --prune-empty --index-filter "git update-index --remove A.t B.t" prune-entire &&
398
- test_path_is_missing .git/refs/heads/prune-entire &&
398
+ test_must_fail git rev-parse refs/heads/prune-entire &&
399
test_must_fail git reflog exists refs/heads/prune-entire
400
'
401