Several tests: cd inside subshell instead of around
[gitweb.git] / t / t3903-stash.sh
index 62e208aadd592ddaa5c519cf328e636d948221c0..3f430122c200dd7ef64aa9293eeb857147801bf4 100755 (executable)
@@ -69,9 +69,9 @@ test_expect_success 'apply stashed changes (including index)' '
 test_expect_success 'unstashing in a subdirectory' '
        git reset --hard HEAD &&
        mkdir subdir &&
-       cd subdir &&
-       git stash apply &&
-       cd ..
+       (cd subdir &&
+       git stash apply
+       )
 '
 
 test_expect_success 'drop top stash' '