Skip to content

Commit 5918f30

Browse files
pks-tgitster
authored andcommitted
t7003: ensure filter-branch prunes reflogs with the reftable backend
In t7003 we conditionally check whether the reflog for branches pruned by git-filter-branch(1) get deleted based on whether or not we use the "files" backend. Same as with the preceding commit, this condition was added because in its initial iteration the "reftable" backend did not delete reflogs when their corresponding ref was deleted. Since then, the backend has been aligned to behave the same as the "files" backend though, which makes this check unnecessary. Remove it. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f85a032 commit 5918f30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

t/t7003-filter-branch.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,7 @@ 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-
if test_have_prereq REFFILES
400-
then
401-
test_must_fail git reflog exists refs/heads/prune-entire
402-
fi
399+
test_must_fail git reflog exists refs/heads/prune-entire
403400
'
404401

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

0 commit comments

Comments
 (0)