diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-05-31 19:56:26 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-02 04:01:54 +0300 |
commit | fdc8acc7066650b967d8957bc24d58eb54b537f8 (patch) | |
tree | 51276f9e1ae5a368a8d6f2383855ddffd67461cc /t/t7003-filter-branch.sh | |
parent | f1ed224753728b6defc6bc6e9058717a0645482d (diff) |
t7003: use rev-parse rather than FS inspection
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/t7003-filter-branch.sh')
-rwxr-xr-x | t/t7003-filter-branch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 1349e5b232..cf30055c88 100755 --- a/t/t7003-filter-branch.sh +++ b/t/t7003-filter-branch.sh @@ -395,7 +395,7 @@ test_expect_success '--prune-empty is able to prune root commit' ' 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_path_is_missing .git/refs/heads/prune-entire && + test_must_fail git rev-parse refs/heads/prune-entire && test_must_fail git reflog exists refs/heads/prune-entire ' |