Skip to content

Commit c9858c5

Browse files
dschoGit for Windows Build Agent
authored andcommitted
t5505/t5516: fix white-space around redirectors
The convention in Git project's shell scripts is to have white-space _before_, but not _after_ the `>` (or `<`). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7a5c4a3 commit c9858c5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

t/t5505-remote.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
951951
(
952952
cd three &&
953953
git remote show origin >output &&
954-
! grep "^ *HEAD$" < output &&
955-
! grep -i stale < output
954+
! grep "^ *HEAD$" <output &&
955+
! grep -i stale <output
956956
)
957957
'
958958

@@ -1171,7 +1171,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'migrate a remote from named file in
11711171
cd seven &&
11721172
git remote rm origin &&
11731173
mkdir -p .git/branches &&
1174-
echo "quux#foom" > .git/branches/origin &&
1174+
echo "quux#foom" >.git/branches/origin &&
11751175
git remote rename origin origin &&
11761176
test_path_is_missing .git/branches/origin &&
11771177
test "$(git config remote.origin.url)" = "quux" &&

t/t5516-fetch-push.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
987987
git branch second $the_first_commit &&
988988
git checkout second &&
989989
mkdir -p testrepo/.git/branches &&
990-
echo ".." > testrepo/.git/branches/branch1 &&
990+
echo ".." >testrepo/.git/branches/branch1 &&
991991
(
992992
cd testrepo &&
993993
git fetch branch1 &&
@@ -1001,7 +1001,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
10011001
test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches containing #' '
10021002
mk_empty testrepo &&
10031003
mkdir -p testrepo/.git/branches &&
1004-
echo "..#second" > testrepo/.git/branches/branch2 &&
1004+
echo "..#second" >testrepo/.git/branches/branch2 &&
10051005
(
10061006
cd testrepo &&
10071007
git fetch branch2 &&
@@ -1018,7 +1018,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
10181018
10191019
test_when_finished "rm -rf .git/branches" &&
10201020
mkdir -p .git/branches &&
1021-
echo "testrepo" > .git/branches/branch1 &&
1021+
echo "testrepo" >.git/branches/branch1 &&
10221022
10231023
git push branch1 &&
10241024
(
@@ -1034,7 +1034,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
10341034
10351035
test_when_finished "rm -rf .git/branches" &&
10361036
mkdir -p .git/branches &&
1037-
echo "testrepo#branch3" > .git/branches/branch2 &&
1037+
echo "testrepo#branch3" >.git/branches/branch2 &&
10381038
10391039
git push branch2 &&
10401040
(
@@ -1564,7 +1564,7 @@ EOF
15641564
git init no-thin &&
15651565
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15661566
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1567-
echo modified >> path1 &&
1567+
echo modified >>path1 &&
15681568
git commit -am modified &&
15691569
git repack -adf &&
15701570
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)