From: Shawn O. Pearce Date: Sat, 17 Apr 2010 20:07:35 +0000 (-0700) Subject: t5550-http-fetch: Use subshell for repository operations X-Git-Tag: v1.7.2-rc0~118^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d761b2ac0e42416f7fb7752d6ac6cc02c26ea14f;p=git.git t5550-http-fetch: Use subshell for repository operations Change into the server repository's directory using a subshell, so we can return back to the top of the trash directory before doing anything more in the test script. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh index 8cfce969b..78c31c961 100755 --- a/t/t5550-http-fetch.sh +++ b/t/t5550-http-fetch.sh @@ -55,9 +55,10 @@ test_expect_success 'http remote detects correct HEAD' ' test_expect_success 'fetch packed objects' ' cp -R "$HTTPD_DOCUMENT_ROOT_PATH"/repo.git "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git && - cd "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git && - git --bare repack && - git --bare prune-packed && + (cd "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git && + git --bare repack && + git --bare prune-packed + ) && git clone $HTTPD_URL/dumb/repo_pack.git '