Code

Several tests: cd inside subshell instead of around
[git.git] / t / t1302-repo-version.sh
index 8d305b43725f8cf60e7ee802df1923feb98eeae5..c94871993182df3aae4cbfbc57555b17877bd49b 100755 (executable)
@@ -32,9 +32,9 @@ test_expect_success 'gitdir selection on unsupported repo' '
        test "$(git config core.repositoryformatversion)" = 99)'
 
 test_expect_success 'gitdir not required mode' '
-       (git apply --stat test.patch &&
-       cd test && git apply --stat ../test.patch &&
-       cd ../test2 && git apply --stat ../test.patch)'
+       git apply --stat test.patch &&
+       (cd test && git apply --stat ../test.patch) &&
+       (cd test2 && git apply --stat ../test.patch)'
 
 test_expect_success 'gitdir required mode on normal repos' '
        (git apply --check --index test.patch &&