From: Han-Wen Nienhuys Date: Mon, 31 May 2021 16:56:26 +0000 (+0000) Subject: t7003: use rev-parse rather than FS inspection X-Git-Tag: v2.33.0-rc0~67^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdc8acc7066650b967d8957bc24d58eb54b537f8;p=thirdparty%2Fgit.git t7003: use rev-parse rather than FS inspection Signed-off-by: Han-Wen Nienhuys Reviewed-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 1349e5b232..cf30055c88 100755 --- a/t/t7003-filter-branch.sh +++ b/t/t7003-filter-branch.sh @@ -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 '