Skip to content

Commit afc4de7

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 c705edb commit afc4de7

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
@@ -970,7 +970,7 @@ test_expect_success 'fetch with branches' '
970970
git branch second $the_first_commit &&
971971
git checkout second &&
972972
mkdir -p testrepo/.git/branches &&
973-
echo ".." > testrepo/.git/branches/branch1 &&
973+
echo ".." >testrepo/.git/branches/branch1 &&
974974
(
975975
cd testrepo &&
976976
git fetch branch1 &&
@@ -984,7 +984,7 @@ test_expect_success 'fetch with branches' '
984984
test_expect_success 'fetch with branches containing #' '
985985
mk_empty testrepo &&
986986
mkdir -p testrepo/.git/branches &&
987-
echo "..#second" > testrepo/.git/branches/branch2 &&
987+
echo "..#second" >testrepo/.git/branches/branch2 &&
988988
(
989989
cd testrepo &&
990990
git fetch branch2 &&
@@ -1001,7 +1001,7 @@ test_expect_success 'push with branches' '
10011001
10021002
test_when_finished "rm -rf .git/branches" &&
10031003
mkdir -p .git/branches &&
1004-
echo "testrepo" > .git/branches/branch1 &&
1004+
echo "testrepo" >.git/branches/branch1 &&
10051005
10061006
git push branch1 &&
10071007
(
@@ -1017,7 +1017,7 @@ test_expect_success 'push with branches containing #' '
10171017
10181018
test_when_finished "rm -rf .git/branches" &&
10191019
mkdir -p .git/branches &&
1020-
echo "testrepo#branch3" > .git/branches/branch2 &&
1020+
echo "testrepo#branch3" >.git/branches/branch2 &&
10211021
10221022
git push branch2 &&
10231023
(
@@ -1546,7 +1546,7 @@ EOF
15461546
git init no-thin &&
15471547
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15481548
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1549-
echo modified >> path1 &&
1549+
echo modified >>path1 &&
15501550
git commit -am modified &&
15511551
git repack -adf &&
15521552
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)