summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-05-31 16:56:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-06-02 01:01:55 (GMT)
commitc139e582376bb548949753153fce809fc279e17a (patch)
treef562ffec8f5665d5ec79e9be9cc270894ae88079 /t
parente740873c4778434737e36eecf2a9393abe709a88 (diff)
downloadgit-c139e582376bb548949753153fce809fc279e17a.zip
git-c139e582376bb548949753153fce809fc279e17a.tar.gz
git-c139e582376bb548949753153fce809fc279e17a.tar.bz2
t7003: check reflog existence only for REFFILES
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t7003-filter-branch.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh
index cf30055..e18a218 100755
--- a/t/t7003-filter-branch.sh
+++ b/t/t7003-filter-branch.sh
@@ -396,7 +396,10 @@ 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 &&
- test_must_fail git reflog exists 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' '