mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-03 18:59:59 -06:00
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>
This commit is contained in:
parent
24aaf209dc
commit
e79815d934
@ -951,8 +951,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
|
||||
(
|
||||
cd three &&
|
||||
git remote show origin >output &&
|
||||
! grep "^ *HEAD$" < output &&
|
||||
! grep -i stale < output
|
||||
! grep "^ *HEAD$" <output &&
|
||||
! grep -i stale <output
|
||||
)
|
||||
'
|
||||
|
||||
@ -1171,7 +1171,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'migrate a remote from named file in
|
||||
cd seven &&
|
||||
git remote rm origin &&
|
||||
mkdir -p .git/branches &&
|
||||
echo "quux#foom" > .git/branches/origin &&
|
||||
echo "quux#foom" >.git/branches/origin &&
|
||||
git remote rename origin origin &&
|
||||
test_path_is_missing .git/branches/origin &&
|
||||
test "$(git config remote.origin.url)" = "quux" &&
|
||||
|
||||
@ -934,7 +934,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
|
||||
git branch second $the_first_commit &&
|
||||
git checkout second &&
|
||||
mkdir -p testrepo/.git/branches &&
|
||||
echo ".." > testrepo/.git/branches/branch1 &&
|
||||
echo ".." >testrepo/.git/branches/branch1 &&
|
||||
(
|
||||
cd testrepo &&
|
||||
git fetch branch1 &&
|
||||
@ -948,7 +948,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
|
||||
test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches containing #' '
|
||||
mk_empty testrepo &&
|
||||
mkdir -p testrepo/.git/branches &&
|
||||
echo "..#second" > testrepo/.git/branches/branch2 &&
|
||||
echo "..#second" >testrepo/.git/branches/branch2 &&
|
||||
(
|
||||
cd testrepo &&
|
||||
git fetch branch2 &&
|
||||
@ -965,7 +965,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
|
||||
|
||||
test_when_finished "rm -rf .git/branches" &&
|
||||
mkdir -p .git/branches &&
|
||||
echo "testrepo" > .git/branches/branch1 &&
|
||||
echo "testrepo" >.git/branches/branch1 &&
|
||||
|
||||
git push branch1 &&
|
||||
(
|
||||
@ -981,7 +981,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
|
||||
|
||||
test_when_finished "rm -rf .git/branches" &&
|
||||
mkdir -p .git/branches &&
|
||||
echo "testrepo#branch3" > .git/branches/branch2 &&
|
||||
echo "testrepo#branch3" >.git/branches/branch2 &&
|
||||
|
||||
git push branch2 &&
|
||||
(
|
||||
@ -1511,7 +1511,7 @@ EOF
|
||||
git init no-thin &&
|
||||
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
|
||||
git push no-thin/.git refs/heads/main:refs/heads/foo &&
|
||||
echo modified >> path1 &&
|
||||
echo modified >>path1 &&
|
||||
git commit -am modified &&
|
||||
git repack -adf &&
|
||||
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user