Skip to content

Commit c139e58

Browse files
hanwengitster
authored andcommitted
t7003: check reflog existence only for REFFILES
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 e740873 commit c139e58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t7003-filter-branch.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,10 @@ 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 &&
398398
test_must_fail git rev-parse refs/heads/prune-entire &&
399-
test_must_fail git reflog exists refs/heads/prune-entire
399+
if test_have_prereq REFFILES
400+
then
401+
test_must_fail git reflog exists refs/heads/prune-entire
402+
fi
400403
'
401404

402405
test_expect_success '--remap-to-ancestor with filename filters' '

0 commit comments

Comments
 (0)