]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t9300-fast-import.sh
Several tests: cd inside subshell instead of around
[thirdparty/git.git] / t / t9300-fast-import.sh
index 2aeed7bd0601a0587f99250377001be6287772e5..1a205a4d5ab5027f50568234ad0cd56fd60f4af1 100755 (executable)
@@ -1056,11 +1056,10 @@ test_expect_success \
        'P: supermodule & submodule mix' \
        'git fast-import <input &&
         git checkout subuse1 &&
-        rm -rf sub && mkdir sub && cd sub &&
+        rm -rf sub && mkdir sub && (cd sub &&
         git init &&
         git fetch --update-head-ok .. refs/heads/sub:refs/heads/master &&
-        git checkout master &&
-        cd .. &&
+        git checkout master) &&
         git submodule init &&
         git submodule update'