Skip to content

Commit c0a99ec

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
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 be4f0df commit c0a99ec

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
@@ -721,8 +721,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
721721
(
722722
cd three &&
723723
git remote show origin >output &&
724-
! grep "^ *HEAD$" < output &&
725-
! grep -i stale < output
724+
! grep "^ *HEAD$" <output &&
725+
! grep -i stale <output
726726
)
727727
'
728728

@@ -926,7 +926,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
926926
cd seven &&
927927
git remote rm origin &&
928928
mkdir -p .git/branches &&
929-
echo "quux#foom" > .git/branches/origin &&
929+
echo "quux#foom" >.git/branches/origin &&
930930
git remote rename origin origin &&
931931
test_path_is_missing .git/branches/origin &&
932932
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
@@ -867,7 +867,7 @@ test_expect_success 'fetch with branches' '
867867
git branch second $the_first_commit &&
868868
git checkout second &&
869869
mkdir -p testrepo/.git/branches &&
870-
echo ".." > testrepo/.git/branches/branch1 &&
870+
echo ".." >testrepo/.git/branches/branch1 &&
871871
(
872872
cd testrepo &&
873873
git fetch branch1 &&
@@ -881,7 +881,7 @@ test_expect_success 'fetch with branches' '
881881
test_expect_success 'fetch with branches containing #' '
882882
mk_empty testrepo &&
883883
mkdir -p testrepo/.git/branches &&
884-
echo "..#second" > testrepo/.git/branches/branch2 &&
884+
echo "..#second" >testrepo/.git/branches/branch2 &&
885885
(
886886
cd testrepo &&
887887
git fetch branch2 &&
@@ -896,7 +896,7 @@ test_expect_success 'push with branches' '
896896
mk_empty testrepo &&
897897
git checkout second &&
898898
mkdir -p .git/branches &&
899-
echo "testrepo" > .git/branches/branch1 &&
899+
echo "testrepo" >.git/branches/branch1 &&
900900
git push branch1 &&
901901
(
902902
cd testrepo &&
@@ -909,7 +909,7 @@ test_expect_success 'push with branches' '
909909
test_expect_success 'push with branches containing #' '
910910
mk_empty testrepo &&
911911
mkdir -p .git/branches &&
912-
echo "testrepo#branch3" > .git/branches/branch2 &&
912+
echo "testrepo#branch3" >.git/branches/branch2 &&
913913
git push branch2 &&
914914
(
915915
cd testrepo &&
@@ -1432,7 +1432,7 @@ EOF
14321432
git init no-thin &&
14331433
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
14341434
git push no-thin/.git refs/heads/master:refs/heads/foo &&
1435-
echo modified >> path1 &&
1435+
echo modified >>path1 &&
14361436
git commit -am modified &&
14371437
git repack -adf &&
14381438
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)