summaryrefslogtreecommitdiff
path: root/t/t5510-fetch.sh
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2012-03-01 21:40:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-01 22:34:14 (GMT)
commitaa9828561e562a0b9ca559be4225de679b8e8be3 (patch)
tree11ef5cc8a8b9d4a77f95c5559512b2eb6e20af1c /t/t5510-fetch.sh
parent61821aaa12ed698f2e94bb15fea958c598e4f231 (diff)
downloadgit-aa9828561e562a0b9ca559be4225de679b8e8be3.zip
git-aa9828561e562a0b9ca559be4225de679b8e8be3.tar.gz
git-aa9828561e562a0b9ca559be4225de679b8e8be3.tar.bz2
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>
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-xt/t5510-fetch.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index 6508d8a..d7eca5d 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