t2000-t2999: fix broken &&-chains
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:57 +0000 (20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:38:47 +0000 (14:38 -0700)
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2103-update-index-ignore-missing.sh
t/t2202-add-addremove.sh
index 332694e7d38083fad18b3e53e4def268d54e9423..0114f052280d4022a3b47e427b2da3df5547f24c 100755 (executable)
@@ -32,7 +32,7 @@ test_expect_success basics '
                test_create_repo xyzzy &&
                cd xyzzy &&
                >file &&
-               git add file
+               git add file &&
                git commit -m "sub initial"
        ) &&
        git add xyzzy &&
index 6a5a3166b1823e751dfe19a28bf54c147dd798b3..17744e8c57b8adbe976e9abe5a8c8350429e4c19 100755 (executable)
@@ -6,12 +6,12 @@ test_description='git add --all'
 
 test_expect_success setup '
        (
-               echo .gitignore
+               echo .gitignore &&
                echo will-remove
        ) >expect &&
        (
-               echo actual
-               echo expect
+               echo actual &&
+               echo expect &&
                echo ignored
        ) >.gitignore &&
        git --literal-pathspecs add --all &&
@@ -25,10 +25,10 @@ test_expect_success setup '
 
 test_expect_success 'git add --all' '
        (
-               echo .gitignore
-               echo not-ignored
-               echo "M .gitignore"
-               echo "A not-ignored"
+               echo .gitignore &&
+               echo not-ignored &&
+               echo "M .gitignore" &&
+               echo "A not-ignored" &&
                echo "D will-remove"
        ) >expect &&
        >ignored &&