mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
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>
This commit is contained in:
parent
f1ed224753
commit
fdc8acc706
1 changed files with 1 additions and 1 deletions
|
@ -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' '
|
test_expect_success '--prune-empty is able to prune entire branch' '
|
||||||
git branch prune-entire B &&
|
git branch prune-entire B &&
|
||||||
git filter-branch -f --prune-empty --index-filter "git update-index --remove A.t B.t" prune-entire &&
|
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
|
test_must_fail git reflog exists refs/heads/prune-entire
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue