Skip to content

Commit dd2a525

Browse files
committed
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 f1f23e4 commit dd2a525

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
@@ -836,8 +836,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
836836
(
837837
cd three &&
838838
git remote show origin >output &&
839-
! grep "^ *HEAD$" < output &&
840-
! grep -i stale < output
839+
! grep "^ *HEAD$" <output &&
840+
! grep -i stale <output
841841
)
842842
'
843843

@@ -1056,7 +1056,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
10561056
cd seven &&
10571057
git remote rm origin &&
10581058
mkdir -p .git/branches &&
1059-
echo "quux#foom" > .git/branches/origin &&
1059+
echo "quux#foom" >.git/branches/origin &&
10601060
git remote rename origin origin &&
10611061
test_path_is_missing .git/branches/origin &&
10621062
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
@@ -981,7 +981,7 @@ test_expect_success 'fetch with branches' '
981981
git branch second $the_first_commit &&
982982
git checkout second &&
983983
mkdir -p testrepo/.git/branches &&
984-
echo ".." > testrepo/.git/branches/branch1 &&
984+
echo ".." >testrepo/.git/branches/branch1 &&
985985
(
986986
cd testrepo &&
987987
git fetch branch1 &&
@@ -995,7 +995,7 @@ test_expect_success 'fetch with branches' '
995995
test_expect_success 'fetch with branches containing #' '
996996
mk_empty testrepo &&
997997
mkdir -p testrepo/.git/branches &&
998-
echo "..#second" > testrepo/.git/branches/branch2 &&
998+
echo "..#second" >testrepo/.git/branches/branch2 &&
999999
(
10001000
cd testrepo &&
10011001
git fetch branch2 &&
@@ -1012,7 +1012,7 @@ test_expect_success 'push with branches' '
10121012
10131013
test_when_finished "rm -rf .git/branches" &&
10141014
mkdir -p .git/branches &&
1015-
echo "testrepo" > .git/branches/branch1 &&
1015+
echo "testrepo" >.git/branches/branch1 &&
10161016
10171017
git push branch1 &&
10181018
(
@@ -1028,7 +1028,7 @@ test_expect_success 'push with branches containing #' '
10281028
10291029
test_when_finished "rm -rf .git/branches" &&
10301030
mkdir -p .git/branches &&
1031-
echo "testrepo#branch3" > .git/branches/branch2 &&
1031+
echo "testrepo#branch3" >.git/branches/branch2 &&
10321032
10331033
git push branch2 &&
10341034
(
@@ -1557,7 +1557,7 @@ EOF
15571557
git init no-thin &&
15581558
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15591559
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1560-
echo modified >> path1 &&
1560+
echo modified >>path1 &&
15611561
git commit -am modified &&
15621562
git repack -adf &&
15631563
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)