Code

Several tests: cd inside subshell instead of around
[git.git] / t / t9105-git-svn-commit-diff.sh
index dd48e9cba832a06a34fd1e2c895bb1b19792168f..d432d835aeef1dafebf1c358a2c25009bc5df00e 100755 (executable)
@@ -6,10 +6,10 @@ test_description='git svn commit-diff'
 
 test_expect_success 'initialize repo' '
        mkdir import &&
-       cd import &&
+       (cd import &&
        echo hello > readme &&
-       svn_cmd import -m "initial" . "$svnrepo" &&
-       cd .. &&
+       svn_cmd import -m "initial" . "$svnrepo"
+       ) &&
        echo hello > readme &&
        git update-index --add readme &&
        git commit -a -m "initial" &&