Skip to content

Commit d24daf8

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 410e66f commit d24daf8

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
@@ -738,8 +738,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
738738
(
739739
cd three &&
740740
git remote show origin >output &&
741-
! grep "^ *HEAD$" < output &&
742-
! grep -i stale < output
741+
! grep "^ *HEAD$" <output &&
742+
! grep -i stale <output
743743
)
744744
'
745745

@@ -945,7 +945,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
945945
cd seven &&
946946
git remote rm origin &&
947947
mkdir -p .git/branches &&
948-
echo "quux#foom" > .git/branches/origin &&
948+
echo "quux#foom" >.git/branches/origin &&
949949
git remote rename origin origin &&
950950
test_path_is_missing .git/branches/origin &&
951951
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
@@ -909,7 +909,7 @@ test_expect_success 'fetch with branches' '
909909
git branch second $the_first_commit &&
910910
git checkout second &&
911911
mkdir -p testrepo/.git/branches &&
912-
echo ".." > testrepo/.git/branches/branch1 &&
912+
echo ".." >testrepo/.git/branches/branch1 &&
913913
(
914914
cd testrepo &&
915915
git fetch branch1 &&
@@ -923,7 +923,7 @@ test_expect_success 'fetch with branches' '
923923
test_expect_success 'fetch with branches containing #' '
924924
mk_empty testrepo &&
925925
mkdir -p testrepo/.git/branches &&
926-
echo "..#second" > testrepo/.git/branches/branch2 &&
926+
echo "..#second" >testrepo/.git/branches/branch2 &&
927927
(
928928
cd testrepo &&
929929
git fetch branch2 &&
@@ -938,7 +938,7 @@ test_expect_success 'push with branches' '
938938
mk_empty testrepo &&
939939
git checkout second &&
940940
mkdir -p .git/branches &&
941-
echo "testrepo" > .git/branches/branch1 &&
941+
echo "testrepo" >.git/branches/branch1 &&
942942
git push branch1 &&
943943
(
944944
cd testrepo &&
@@ -951,7 +951,7 @@ test_expect_success 'push with branches' '
951951
test_expect_success 'push with branches containing #' '
952952
mk_empty testrepo &&
953953
mkdir -p .git/branches &&
954-
echo "testrepo#branch3" > .git/branches/branch2 &&
954+
echo "testrepo#branch3" >.git/branches/branch2 &&
955955
git push branch2 &&
956956
(
957957
cd testrepo &&
@@ -1476,7 +1476,7 @@ EOF
14761476
git init no-thin &&
14771477
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
14781478
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1479-
echo modified >> path1 &&
1479+
echo modified >>path1 &&
14801480
git commit -am modified &&
14811481
git repack -adf &&
14821482
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)