Skip to content

Commit 60afdb1

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 0933cab commit 60afdb1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

t/t5505-remote.sh

+3-3
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

+5-5
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ test_expect_success 'fetch with branches' '
947947
git branch second $the_first_commit &&
948948
git checkout second &&
949949
mkdir -p testrepo/.git/branches &&
950-
echo ".." > testrepo/.git/branches/branch1 &&
950+
echo ".." >testrepo/.git/branches/branch1 &&
951951
(
952952
cd testrepo &&
953953
git fetch branch1 &&
@@ -961,7 +961,7 @@ test_expect_success 'fetch with branches' '
961961
test_expect_success 'fetch with branches containing #' '
962962
mk_empty testrepo &&
963963
mkdir -p testrepo/.git/branches &&
964-
echo "..#second" > testrepo/.git/branches/branch2 &&
964+
echo "..#second" >testrepo/.git/branches/branch2 &&
965965
(
966966
cd testrepo &&
967967
git fetch branch2 &&
@@ -978,7 +978,7 @@ test_expect_success 'push with branches' '
978978
979979
test_when_finished "rm -rf .git/branches" &&
980980
mkdir -p .git/branches &&
981-
echo "testrepo" > .git/branches/branch1 &&
981+
echo "testrepo" >.git/branches/branch1 &&
982982
983983
git push branch1 &&
984984
(
@@ -994,7 +994,7 @@ test_expect_success 'push with branches containing #' '
994994
995995
test_when_finished "rm -rf .git/branches" &&
996996
mkdir -p .git/branches &&
997-
echo "testrepo#branch3" > .git/branches/branch2 &&
997+
echo "testrepo#branch3" >.git/branches/branch2 &&
998998
999999
git push branch2 &&
10001000
(
@@ -1523,7 +1523,7 @@ EOF
15231523
git init no-thin &&
15241524
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15251525
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1526-
echo modified >> path1 &&
1526+
echo modified >>path1 &&
15271527
git commit -am modified &&
15281528
git repack -adf &&
15291529
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)