t0000-t0999: 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:
Eric Sunshine
2018-07-01 20:23:55 -04:00
committed by Junio C Hamano
parent 794165cb17
commit 75651fd783
3 changed files with 15 additions and 15 deletions

View File

@ -1081,7 +1081,7 @@ test_expect_success 'very long name in the index handled sanely' '
( (
git ls-files -s path4 | git ls-files -s path4 |
sed -e "s/ .*/ /" | sed -e "s/ .*/ /" |
tr -d "\012" tr -d "\012" &&
echo "$a" echo "$a"
) | git update-index --index-info && ) | git update-index --index-info &&
len=$(git ls-files "a*" | wc -c) && len=$(git ls-files "a*" | wc -c) &&

View File

@ -34,15 +34,15 @@ test_expect_success 'open-quoted pathname' '
test_expect_success 'setup' ' test_expect_success 'setup' '
mkdir -p a/b/d a/c b && mkdir -p a/b/d a/c b &&
( (
echo "[attr]notest !test" echo "[attr]notest !test" &&
echo "\" d \" test=d" echo "\" d \" test=d" &&
echo " e test=e" echo " e test=e" &&
echo " e\" test=e" echo " e\" test=e" &&
echo "f test=f" echo "f test=f" &&
echo "a/i test=a/i" echo "a/i test=a/i" &&
echo "onoff test -test" echo "onoff test -test" &&
echo "offon -test test" echo "offon -test test" &&
echo "no notest" echo "no notest" &&
echo "A/e/F test=A/e/F" echo "A/e/F test=A/e/F"
) >.gitattributes && ) >.gitattributes &&
( (
@ -51,7 +51,7 @@ test_expect_success 'setup' '
) >a/.gitattributes && ) >a/.gitattributes &&
( (
echo "h test=a/b/h" && echo "h test=a/b/h" &&
echo "d/* test=a/b/d/*" echo "d/* test=a/b/d/*" &&
echo "d/yes notest" echo "d/yes notest"
) >a/b/.gitattributes && ) >a/b/.gitattributes &&
( (
@ -287,7 +287,7 @@ test_expect_success 'bare repository: check that .gitattribute is ignored' '
( (
cd bare.git && cd bare.git &&
( (
echo "f test=f" echo "f test=f" &&
echo "a/i test=a/i" echo "a/i test=a/i"
) >.gitattributes && ) >.gitattributes &&
attr_check f unspecified && attr_check f unspecified &&
@ -312,7 +312,7 @@ test_expect_success 'bare repository: test info/attributes' '
( (
cd bare.git && cd bare.git &&
( (
echo "f test=f" echo "f test=f" &&
echo "a/i test=a/i" echo "a/i test=a/i"
) >info/attributes && ) >info/attributes &&
attr_check f f && attr_check f f &&

View File

@ -785,7 +785,7 @@ test_expect_success PERL 'missing file in delayed checkout' '
cd repo && cd repo &&
git init && git init &&
echo "*.a filter=bug" >.gitattributes && echo "*.a filter=bug" >.gitattributes &&
cp "$TEST_ROOT/test.o" missing-delay.a cp "$TEST_ROOT/test.o" missing-delay.a &&
git add . && git add . &&
git commit -m "test commit" git commit -m "test commit"
) && ) &&
@ -807,7 +807,7 @@ test_expect_success PERL 'invalid file in delayed checkout' '
git init && git init &&
echo "*.a filter=bug" >.gitattributes && echo "*.a filter=bug" >.gitattributes &&
cp "$TEST_ROOT/test.o" invalid-delay.a && cp "$TEST_ROOT/test.o" invalid-delay.a &&
cp "$TEST_ROOT/test.o" unfiltered cp "$TEST_ROOT/test.o" unfiltered &&
git add . && git add . &&
git commit -m "test commit" git commit -m "test commit"
) && ) &&