Code

tests: subshell indentation stylefix
[git.git] / t / t1020-subdirectory.sh
index 56874996a6df278202c0bc476abec4bca3ce99c5..0d0da17eb8098b64c9165c8fad29baa8be17da43 100755 (executable)
@@ -27,13 +27,14 @@ test_expect_success 'update-index and ls-files' '
        one) echo pass one ;;
        *) echo bad one; exit 1 ;;
        esac &&
-       cd dir &&
-       git update-index --add two &&
-       case "`git ls-files`" in
-       two) echo pass two ;;
-       *) echo bad two; exit 1 ;;
-       esac &&
-       cd .. &&
+       (
+               cd dir &&
+               git update-index --add two &&
+               case "`git ls-files`" in
+               two) echo pass two ;;
+               *) echo bad two; exit 1 ;;
+               esac
+       ) &&
        case "`git ls-files`" in
        dir/two"$LF"one) echo pass both ;;
        *) echo bad; exit 1 ;;