Skip to content

Commit 012bed8

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 0eadd82 commit 012bed8

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

@@ -1055,7 +1055,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
10551055
cd seven &&
10561056
git remote rm origin &&
10571057
mkdir -p .git/branches &&
1058-
echo "quux#foom" > .git/branches/origin &&
1058+
echo "quux#foom" >.git/branches/origin &&
10591059
git remote rename origin origin &&
10601060
test_path_is_missing .git/branches/origin &&
10611061
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
@@ -980,7 +980,7 @@ test_expect_success 'fetch with branches' '
980980
git branch second $the_first_commit &&
981981
git checkout second &&
982982
mkdir -p testrepo/.git/branches &&
983-
echo ".." > testrepo/.git/branches/branch1 &&
983+
echo ".." >testrepo/.git/branches/branch1 &&
984984
(
985985
cd testrepo &&
986986
git fetch branch1 &&
@@ -994,7 +994,7 @@ test_expect_success 'fetch with branches' '
994994
test_expect_success 'fetch with branches containing #' '
995995
mk_empty testrepo &&
996996
mkdir -p testrepo/.git/branches &&
997-
echo "..#second" > testrepo/.git/branches/branch2 &&
997+
echo "..#second" >testrepo/.git/branches/branch2 &&
998998
(
999999
cd testrepo &&
10001000
git fetch branch2 &&
@@ -1011,7 +1011,7 @@ test_expect_success 'push with branches' '
10111011
10121012
test_when_finished "rm -rf .git/branches" &&
10131013
mkdir -p .git/branches &&
1014-
echo "testrepo" > .git/branches/branch1 &&
1014+
echo "testrepo" >.git/branches/branch1 &&
10151015
10161016
git push branch1 &&
10171017
(
@@ -1027,7 +1027,7 @@ test_expect_success 'push with branches containing #' '
10271027
10281028
test_when_finished "rm -rf .git/branches" &&
10291029
mkdir -p .git/branches &&
1030-
echo "testrepo#branch3" > .git/branches/branch2 &&
1030+
echo "testrepo#branch3" >.git/branches/branch2 &&
10311031
10321032
git push branch2 &&
10331033
(
@@ -1556,7 +1556,7 @@ EOF
15561556
git init no-thin &&
15571557
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15581558
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1559-
echo modified >> path1 &&
1559+
echo modified >>path1 &&
15601560
git commit -am modified &&
15611561
git repack -adf &&
15621562
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)