[PATCH 2/6] t5550-http-fetch: Use subshell for repository operations
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Apr 15, 2010, 19:09 UTC
- Message-ID
- <1271358560-8946-3-git-send-email-spearce@spearce.org>
- In-Reply-To
- <20100415141504.GB17883@spearce.org>
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 <spearce@spearce.org> --- t/t5550-http-fetch.sh | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh index 8cfce96..78c31c9 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 '
-- 1.7.1.rc1.269.ga27c7