Skip to content

Commit fdc8acc

Browse files
hanwengitster
authored andcommitted
t7003: use rev-parse rather than FS inspection
Signed-off-by: Han-Wen Nienhuys <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f1ed224 commit fdc8acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7003-filter-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ test_expect_success '--prune-empty is able to prune root commit' '
395395
test_expect_success '--prune-empty is able to prune entire branch' '
396396
git branch prune-entire B &&
397397
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 &&
399399
test_must_fail git reflog exists refs/heads/prune-entire
400400
'
401401

0 commit comments

Comments
 (0)