From: Thomas Rast Date: Thu, 1 Mar 2012 21:40:49 +0000 (+0100) Subject: t5510: ensure we stay in the toplevel test dir X-Git-Tag: v1.7.10-rc0~8^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa9828561e562a0b9ca559be4225de679b8e8be3;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 6508d8ab1..d7eca5dba 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -430,14 +430,16 @@ test_expect_success 'fetch --dry-run' ' ' test_expect_success "should be able to fetch with duplicate refspecs" ' - mkdir dups && - cd dups && - git init && - git config branch.master.remote three && - git config remote.three.url ../three/.git && - git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* && - git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* && - git fetch three + mkdir dups && + ( + cd dups && + git init && + git config branch.master.remote three && + git config remote.three.url ../three/.git && + git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* && + git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* && + git fetch three + ) ' test_done