t2000-t2999: fix broken &&-chains
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
f2deabfcb6
commit
2c2d0f9f47
@ -32,7 +32,7 @@ test_expect_success basics '
|
|||||||
test_create_repo xyzzy &&
|
test_create_repo xyzzy &&
|
||||||
cd xyzzy &&
|
cd xyzzy &&
|
||||||
>file &&
|
>file &&
|
||||||
git add file
|
git add file &&
|
||||||
git commit -m "sub initial"
|
git commit -m "sub initial"
|
||||||
) &&
|
) &&
|
||||||
git add xyzzy &&
|
git add xyzzy &&
|
||||||
|
@ -6,12 +6,12 @@ test_description='git add --all'
|
|||||||
|
|
||||||
test_expect_success setup '
|
test_expect_success setup '
|
||||||
(
|
(
|
||||||
echo .gitignore
|
echo .gitignore &&
|
||||||
echo will-remove
|
echo will-remove
|
||||||
) >expect &&
|
) >expect &&
|
||||||
(
|
(
|
||||||
echo actual
|
echo actual &&
|
||||||
echo expect
|
echo expect &&
|
||||||
echo ignored
|
echo ignored
|
||||||
) >.gitignore &&
|
) >.gitignore &&
|
||||||
git --literal-pathspecs add --all &&
|
git --literal-pathspecs add --all &&
|
||||||
@ -25,10 +25,10 @@ test_expect_success setup '
|
|||||||
|
|
||||||
test_expect_success 'git add --all' '
|
test_expect_success 'git add --all' '
|
||||||
(
|
(
|
||||||
echo .gitignore
|
echo .gitignore &&
|
||||||
echo not-ignored
|
echo not-ignored &&
|
||||||
echo "M .gitignore"
|
echo "M .gitignore" &&
|
||||||
echo "A not-ignored"
|
echo "A not-ignored" &&
|
||||||
echo "D will-remove"
|
echo "D will-remove"
|
||||||
) >expect &&
|
) >expect &&
|
||||||
>ignored &&
|
>ignored &&
|
||||||
|
Reference in New Issue
Block a user