t: fix whitespace around &&
Add missing spaces before '&&' and switch tabs around '&&' to spaces. These issues were found using `git grep '[^ ]&&$'` and `git grep -P '&&\t'`. Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andrei Rybak committed
Jun 7, 2021 at 15:13 UTC
52ff891c034d625cd3e5f17f75ced42c8dde3438
7 files changed
+8
-8
contrib/mw-to-git/t/t9360-mw-to-git-clone.sh
+1
-1
@@ -86,7 +86,7 @@ test_expect_success 'Git clone works with page added' '
86
test_expect_success 'Git clone works with an edited page ' '
87
wiki_reset &&
88
wiki_editpage foo "this page will be edited" \
89
- false -s "first edition of page foo"&&
89
+ false -s "first edition of page foo" &&
90
wiki_editpage foo "this page has been edited and must be on the clone " true &&
91
git clone mediawiki::'"$WIKI_URL"' mw_dir_6 &&
92
test_path_is_file mw_dir_6/Foo.mw &&
contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh
+2
-2
@@ -287,7 +287,7 @@ test_expect_success 'git push with \' '
287
git add \\ko\\o.mw &&
288
git commit -m " \\ko\\o added" &&
289
git push
290
- )&&
290
+ ) &&
291
wiki_page_exist \\ko\\o &&
292
wiki_check_content mw_dir_18/\\ko\\o.mw \\ko\\o
293
@@ -311,7 +311,7 @@ test_expect_success 'git push with \ in format control' '
311
git add \\fo\\o.mw &&
312
git commit -m " \\fo\\o added" &&
313
git push
314
- )&&
314
+ ) &&
315
wiki_page_exist \\fo\\o &&
316
wiki_check_content mw_dir_20/\\fo\\o.mw \\fo\\o
317
t/t1092-sparse-checkout-compatibility.sh
+1
-1
@@ -268,7 +268,7 @@ test_expect_success 'diff with renames' '
268
for branch in rename-out-to-out rename-out-to-in rename-in-to-out
269
do
270
test_all_match git checkout rename-base &&
271
- test_all_match git checkout $branch -- .&&
271
+ test_all_match git checkout $branch -- . &&
272
test_all_match git diff --staged --no-renames &&
273
test_all_match git diff --staged --find-renames || return 1
274
done
t/t3920-crlf-messages.sh
+1
-1
@@ -64,7 +64,7 @@ test_crlf_subject_body_and_contents() {
64
while test -n "${atoms}"
65
do
66
set ${atoms} && atom=$1 && shift && atoms="$*" &&
67
- set ${files} && file=$1 && shift && files="$*" &&
67
+ set ${files} && file=$1 && shift && files="$*" &&
68
test_expect_success "${command}: --format='%${atom}' works with messages using CRLF" "
69
rm -f expect &&
70
for ref in ${LIB_CRLF_BRANCHES}
t/t4203-mailmap.sh
+1
-1
@@ -959,7 +959,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
959
test_when_finished "rm .mailmap" &&
960
ln -s map .mailmap &&
961
git log -1 --format=%aE >actual &&
962
- echo "orig@example.com" >expect&&
962
+ echo "orig@example.com" >expect &&
963
test_cmp expect actual
964
'
965
t/t4205-log-pretty-formats.sh
+1
-1
@@ -988,7 +988,7 @@ test_expect_success '%(describe) vs git describe' '
988
989
test_expect_success '%(describe:match=...) vs git describe --match ...' '
990
test_when_finished "git tag -d tag-match" &&
991
- git tag -a -m tagged tag-match&&
991
+ git tag -a -m tagged tag-match &&
992
git describe --match "*-match" >expect &&
993
git log -1 --format="%(describe:match=*-match)" >actual &&
994
test_cmp expect actual
t/t7800-difftool.sh
+1
-1
@@ -770,7 +770,7 @@ test_expect_success 'difftool --rotate-to' '
770
echo 4 >4 &&
771
git add 1 2 4 &&
772
git commit -a -m "124" &&
773
- git difftool --no-prompt --extcmd=cat --rotate-to="2" HEAD^ >output&&
773
+ git difftool --no-prompt --extcmd=cat --rotate-to="2" HEAD^ >output &&
774
cat >expect <<-\EOF &&
775
2
776
4