@matheusbsbs / matheus-bagliano / commits / d761b2ac0e
Fork 0

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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn O. Pearce committed Apr 17, 2010 at 13:07 UTC d761b2ac0e42416f7fb7752d6ac6cc02c26ea14f
1 file changed +4 -3
t/t5550-http-fetch.sh
+4 -3
@@ -55,9 +55,10 @@ test_expect_success 'http remote detects correct HEAD' '
55
56 test_expect_success 'fetch packed objects' '
57 cp -R "$HTTPD_DOCUMENT_ROOT_PATH"/repo.git "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git &&
58 - cd "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git &&
59 - git --bare repack &&
60 - git --bare prune-packed &&
58 + (cd "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git &&
59 + git --bare repack &&
60 + git --bare prune-packed
61 + ) &&
62 git clone $HTTPD_URL/dumb/repo_pack.git
63 '
64