Code

tests: unset COLUMNS inherited from environment
[git.git] / t / t2101-update-index-reupdate.sh
index 648184fd983512be57b46fb5903b42e4de5e4704..c8bce8c2e4314aaf466019438818293102c12c9c 100755 (executable)
@@ -51,7 +51,7 @@ test_expect_success 'update-index again' \
        echo hello world >dir1/file3 &&
        echo goodbye people >file2 &&
        git update-index --add file2 dir1/file3 &&
-       echo hello everybody >file2
+       echo hello everybody >file2 &&
        echo happy >dir1/file3 &&
        git update-index --again &&
        git ls-files -s >current &&
@@ -63,10 +63,10 @@ cat > expected <<\EOF
 EOF
 test_expect_success 'update-index --update from subdir' \
        'echo not so happy >file2 &&
-       cd dir1 &&
+       (cd dir1 &&
        cat ../file2 >file3 &&
-       git update-index --again &&
-       cd .. &&
+       git update-index --again
+       ) &&
        git ls-files -s >current &&
        cmp current expected'