Skip to content

Commit

Permalink
Merge branch 'js/close-packs-before-gc'
Browse files Browse the repository at this point in the history
A small future-proofing of a test added recently.

* js/close-packs-before-gc:
  t5510: do not leave changed cwd
  • Loading branch information
Junio C Hamano committed Mar 10, 2016
2 parents 9ed1d90 + 816c193 commit 68846a9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions t/t5510-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,12 @@ test_expect_success 'fetching with auto-gc does not lock up' '
EOF
git clone "file://$D" auto-gc &&
test_commit test2 &&
cd auto-gc &&
git config gc.autoPackLimit 1 &&
GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
! grep "Should I try again" fetch.out
(
cd auto-gc &&
git config gc.autoPackLimit 1 &&
GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
! grep "Should I try again" fetch.out
)
'

test_done

0 comments on commit 68846a9

Please sign in to comment.