t5510: ensure we stay in the toplevel test dir

The last test descended into a subdir without ever re-emerging, which is not so nice to the next test writer. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Rast committed Mar 1, 2012 at 22:40 UTC aa9828561e562a0b9ca559be4225de679b8e8be3
1 file changed +10 -8
t/t5510-fetch.sh
+10 -8
@@ -430,14 +430,16 @@ test_expect_success 'fetch --dry-run' '
430 '
431
432 test_expect_success "should be able to fetch with duplicate refspecs" '
433 - mkdir dups &&
434 - cd dups &&
435 - git init &&
436 - git config branch.master.remote three &&
437 - git config remote.three.url ../three/.git &&
438 - git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
439 - git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
440 - git fetch three
433 + mkdir dups &&
434 + (
435 + cd dups &&
436 + git init &&
437 + git config branch.master.remote three &&
438 + git config remote.three.url ../three/.git &&
439 + git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
440 + git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
441 + git fetch three
442 + )
443 '
444
445 test_done