Skip to content

Commit 9bf451f

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 f6ab8ff commit 9bf451f

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
@@ -959,7 +959,7 @@ test_expect_success 'fetch with branches' '
959959
git branch second $the_first_commit &&
960960
git checkout second &&
961961
mkdir -p testrepo/.git/branches &&
962-
echo ".." > testrepo/.git/branches/branch1 &&
962+
echo ".." >testrepo/.git/branches/branch1 &&
963963
(
964964
cd testrepo &&
965965
git fetch branch1 &&
@@ -973,7 +973,7 @@ test_expect_success 'fetch with branches' '
973973
test_expect_success 'fetch with branches containing #' '
974974
mk_empty testrepo &&
975975
mkdir -p testrepo/.git/branches &&
976-
echo "..#second" > testrepo/.git/branches/branch2 &&
976+
echo "..#second" >testrepo/.git/branches/branch2 &&
977977
(
978978
cd testrepo &&
979979
git fetch branch2 &&
@@ -990,7 +990,7 @@ test_expect_success 'push with branches' '
990990
991991
test_when_finished "rm -rf .git/branches" &&
992992
mkdir -p .git/branches &&
993-
echo "testrepo" > .git/branches/branch1 &&
993+
echo "testrepo" >.git/branches/branch1 &&
994994
995995
git push branch1 &&
996996
(
@@ -1006,7 +1006,7 @@ test_expect_success 'push with branches containing #' '
10061006
10071007
test_when_finished "rm -rf .git/branches" &&
10081008
mkdir -p .git/branches &&
1009-
echo "testrepo#branch3" > .git/branches/branch2 &&
1009+
echo "testrepo#branch3" >.git/branches/branch2 &&
10101010
10111011
git push branch2 &&
10121012
(
@@ -1535,7 +1535,7 @@ EOF
15351535
git init no-thin &&
15361536
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15371537
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1538-
echo modified >> path1 &&
1538+
echo modified >>path1 &&
15391539
git commit -am modified &&
15401540
git repack -adf &&
15411541
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)