]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t: fix whitespace around &&
authorAndrei Rybak <rybak.a.v@gmail.com>
Mon, 7 Jun 2021 13:13:20 +0000 (15:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Jun 2021 01:08:01 +0000 (10:08 +0900)
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>
contrib/mw-to-git/t/t9360-mw-to-git-clone.sh
contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh
t/t1092-sparse-checkout-compatibility.sh
t/t3920-crlf-messages.sh
t/t4203-mailmap.sh
t/t4205-log-pretty-formats.sh
t/t7800-difftool.sh

index 4c39bda7bf4da0f36db289c3aecdd5e9e40c9330..f08890d9e7ac7adf1a055ca22783e7145c3ee7c7 100755 (executable)
@@ -86,7 +86,7 @@ test_expect_success 'Git clone works with page added' '
 test_expect_success 'Git clone works with an edited page ' '
        wiki_reset &&
        wiki_editpage foo "this page will be edited" \
-               false -s "first edition of page foo"&&
+               false -s "first edition of page foo" &&
        wiki_editpage foo "this page has been edited and must be on the clone " true &&
        git clone mediawiki::'"$WIKI_URL"' mw_dir_6 &&
        test_path_is_file mw_dir_6/Foo.mw &&
index 6b0dbdac4d355cb1a2c952977be2b3cf84aa17a7..526d92850ffb34d9c7b78afa295a4ab7893c5a18 100755 (executable)
@@ -287,7 +287,7 @@ test_expect_success 'git push with \' '
                git add \\ko\\o.mw &&
                git commit -m " \\ko\\o added" &&
                git push
-       )&&
+       ) &&
        wiki_page_exist \\ko\\o &&
        wiki_check_content mw_dir_18/\\ko\\o.mw \\ko\\o
 
@@ -311,7 +311,7 @@ test_expect_success 'git push with \ in format control' '
                git add \\fo\\o.mw &&
                git commit -m " \\fo\\o added" &&
                git push
-       )&&
+       ) &&
        wiki_page_exist \\fo\\o &&
        wiki_check_content mw_dir_20/\\fo\\o.mw \\fo\\o
 
index e9a815ca7aaaa84099b721af7db520c9f1de594b..d028b73eba173f1ea941181aa384b2e9950468c4 100755 (executable)
@@ -268,7 +268,7 @@ test_expect_success 'diff with renames' '
        for branch in rename-out-to-out rename-out-to-in rename-in-to-out
        do
                test_all_match git checkout rename-base &&
-               test_all_match git checkout $branch -- .&&
+               test_all_match git checkout $branch -- . &&
                test_all_match git diff --staged --no-renames &&
                test_all_match git diff --staged --find-renames || return 1
        done
index 70ddce3a2eb48613350891e7ba189487e2b5ec7a..a8ad5462d96d3e1acda9172f4f77806d7a3e8093 100755 (executable)
@@ -64,7 +64,7 @@ test_crlf_subject_body_and_contents() {
        while test -n "${atoms}"
        do
                set ${atoms} && atom=$1 && shift && atoms="$*" &&
-               set ${files} && file=$1 && shift && files="$*" &&
+               set ${files} && file=$1 && shift && files="$*" &&
                test_expect_success "${command}: --format='%${atom}' works with messages using CRLF" "
                        rm -f expect &&
                        for ref in ${LIB_CRLF_BRANCHES}
index d8e73742341117c1d480342478a88de7ab102f59..0b2d21ec5510158cc9bb5b861a94bdfc6eccea12 100755 (executable)
@@ -959,7 +959,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
        test_when_finished "rm .mailmap" &&
        ln -s map .mailmap &&
        git log -1 --format=%aE >actual &&
-       echo "orig@example.com" >expect&&
+       echo "orig@example.com" >expect &&
        test_cmp expect actual
 '
 
index 8272d94ce6b464f7b5a7e3bba8c58037af5a2f16..5865daa8f8d2234f0379d25bda47d5d3142f3fc8 100755 (executable)
@@ -988,7 +988,7 @@ test_expect_success '%(describe) vs git describe' '
 
 test_expect_success '%(describe:match=...) vs git describe --match ...' '
        test_when_finished "git tag -d tag-match" &&
-       git tag -a -m tagged tag-match&&
+       git tag -a -m tagged tag-match &&
        git describe --match "*-match" >expect &&
        git log -1 --format="%(describe:match=*-match)" >actual &&
        test_cmp expect actual
index 3e041e83aede07ead62d54cc9a9b485b8eaeda0f..a173f564bcfeb53152c47cf79ce124b903db5f83 100755 (executable)
@@ -770,7 +770,7 @@ test_expect_success 'difftool --rotate-to' '
        echo 4 >4 &&
        git add 1 2 4 &&
        git commit -a -m "124" &&
-       git difftool --no-prompt --extcmd=cat --rotate-to="2" HEAD^ >output&&
+       git difftool --no-prompt --extcmd=cat --rotate-to="2" HEAD^ >output &&
        cat >expect <<-\EOF &&
        2
        4