mirror of
https://github.com/git/git
synced 2024-10-01 06:05:20 +00:00
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 <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f85a032c67
commit
5918f30b65
|
@ -396,10 +396,7 @@ 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_must_fail git rev-parse refs/heads/prune-entire &&
|
||||
if test_have_prereq REFFILES
|
||||
then
|
||||
test_must_fail git reflog exists refs/heads/prune-entire
|
||||
fi
|
||||
'
|
||||
|
||||
test_expect_success '--remap-to-ancestor with filename filters' '
|
||||
|
|
Loading…
Reference in a new issue