From: Han-Wen Nienhuys via GitGitGadget Date: Tue, 27 Apr 2021 10:38:11 GMT Subject: [PATCH v2 10/21] t7003: use rev-parse rather than FS inspection Message-ID: <4bf1bf16bca35002453c4542c6758e3545e4844a.1619519903.git.gitgitgadget@gmail.com> In-Reply-To: From: Han-Wen Nienhuys Signed-off-by: Han-Wen Nienhuys --- t/t7003-filter-branch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 1349e5b2321c..cf30055c88dd 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 ' -- gitgitgadget