Skip to content

Commit 49b452c

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 <johannes.schindelin@gmx.de>
1 parent 9d1485e commit 49b452c

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
@@ -951,8 +951,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
951951
(
952952
cd three &&
953953
git remote show origin >output &&
954-
! grep "^ *HEAD$" < output &&
955-
! grep -i stale < output
954+
! grep "^ *HEAD$" <output &&
955+
! grep -i stale <output
956956
)
957957
'
958958

@@ -1171,7 +1171,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
11711171
cd seven &&
11721172
git remote rm origin &&
11731173
mkdir -p .git/branches &&
1174-
echo "quux#foom" > .git/branches/origin &&
1174+
echo "quux#foom" >.git/branches/origin &&
11751175
git remote rename origin origin &&
11761176
test_path_is_missing .git/branches/origin &&
11771177
test "$(git config remote.origin.url)" = "quux" &&

t/t5516-fetch-push.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ test_expect_success 'fetch with branches' '
980980
git branch second $the_first_commit &&
981981
git checkout second &&
982982
mkdir -p testrepo/.git/branches &&
983-
echo ".." > testrepo/.git/branches/branch1 &&
983+
echo ".." >testrepo/.git/branches/branch1 &&
984984
(
985985
cd testrepo &&
986986
git fetch branch1 &&
@@ -994,7 +994,7 @@ test_expect_success 'fetch with branches' '
994994
test_expect_success 'fetch with branches containing #' '
995995
mk_empty testrepo &&
996996
mkdir -p testrepo/.git/branches &&
997-
echo "..#second" > testrepo/.git/branches/branch2 &&
997+
echo "..#second" >testrepo/.git/branches/branch2 &&
998998
(
999999
cd testrepo &&
10001000
git fetch branch2 &&
@@ -1011,7 +1011,7 @@ test_expect_success 'push with branches' '
10111011
10121012
test_when_finished "rm -rf .git/branches" &&
10131013
mkdir -p .git/branches &&
1014-
echo "testrepo" > .git/branches/branch1 &&
1014+
echo "testrepo" >.git/branches/branch1 &&
10151015
10161016
git push branch1 &&
10171017
(
@@ -1027,7 +1027,7 @@ test_expect_success 'push with branches containing #' '
10271027
10281028
test_when_finished "rm -rf .git/branches" &&
10291029
mkdir -p .git/branches &&
1030-
echo "testrepo#branch3" > .git/branches/branch2 &&
1030+
echo "testrepo#branch3" >.git/branches/branch2 &&
10311031
10321032
git push branch2 &&
10331033
(
@@ -1557,7 +1557,7 @@ EOF
15571557
git init no-thin &&
15581558
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15591559
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1560-
echo modified >> path1 &&
1560+
echo modified >>path1 &&
15611561
git commit -am modified &&
15621562
git repack -adf &&
15631563
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)