Skip to content

Commit

Permalink
CG t4058
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
gitster committed Aug 30, 2023
1 parent 1efeb4e commit da28c47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t4058-diff-duplicates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,18 @@ test_expect_success 'create a few commits' '
rm commit_id up final
'

test_expect_failure 'git read-tree does not segfault' '
test_expect_success 'git read-tree does not segfault' '
test_when_finished rm .git/index.lock &&
test_might_fail git read-tree --reset base
'

test_expect_failure 'reset --hard does not segfault' '
test_expect_success 'reset --hard does not segfault' '
test_when_finished rm .git/index.lock &&
git checkout base &&
test_might_fail git reset --hard
'

test_expect_failure 'git diff HEAD does not segfault' '
test_expect_success 'git diff HEAD does not segfault' '
git checkout base &&
GIT_TEST_CHECK_CACHE_TREE=false &&
git reset --hard &&
Expand Down

0 comments on commit da28c47

Please sign in to comment.