Skip to content

Commit 5e02fdb

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 dac88ab commit 5e02fdb

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
@@ -934,7 +934,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
934934
git branch second $the_first_commit &&
935935
git checkout second &&
936936
mkdir -p testrepo/.git/branches &&
937-
echo ".." > testrepo/.git/branches/branch1 &&
937+
echo ".." >testrepo/.git/branches/branch1 &&
938938
(
939939
cd testrepo &&
940940
git fetch branch1 &&
@@ -948,7 +948,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
948948
test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches containing #' '
949949
mk_empty testrepo &&
950950
mkdir -p testrepo/.git/branches &&
951-
echo "..#second" > testrepo/.git/branches/branch2 &&
951+
echo "..#second" >testrepo/.git/branches/branch2 &&
952952
(
953953
cd testrepo &&
954954
git fetch branch2 &&
@@ -965,7 +965,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
965965
966966
test_when_finished "rm -rf .git/branches" &&
967967
mkdir -p .git/branches &&
968-
echo "testrepo" > .git/branches/branch1 &&
968+
echo "testrepo" >.git/branches/branch1 &&
969969
970970
git push branch1 &&
971971
(
@@ -981,7 +981,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
981981
982982
test_when_finished "rm -rf .git/branches" &&
983983
mkdir -p .git/branches &&
984-
echo "testrepo#branch3" > .git/branches/branch2 &&
984+
echo "testrepo#branch3" >.git/branches/branch2 &&
985985
986986
git push branch2 &&
987987
(
@@ -1511,7 +1511,7 @@ EOF
15111511
git init no-thin &&
15121512
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15131513
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1514-
echo modified >> path1 &&
1514+
echo modified >>path1 &&
15151515
git commit -am modified &&
15161516
git repack -adf &&
15171517
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)