t7501: remove spaces after redirect operators
For shell scripts, the usual convention is for there to be no space after redirection operators, (e.g. `>file`, not `> file`). Remove these spaces wherever they appear. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
763b47bafa
commit
38c1aa01de
@ -150,7 +150,7 @@ test_expect_success 'setup: commit message from file' '
|
|||||||
test_expect_success 'amend commit' '
|
test_expect_success 'amend commit' '
|
||||||
cat >editor <<-\EOF &&
|
cat >editor <<-\EOF &&
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sed -e "s/a file/an amend commit/g" < "$1" > "$1-"
|
sed -e "s/a file/an amend commit/g" <"$1" >"$1-"
|
||||||
mv "$1-" "$1"
|
mv "$1-" "$1"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 editor &&
|
chmod 755 editor &&
|
||||||
@ -263,7 +263,7 @@ test_expect_success 'using message from other commit' '
|
|||||||
test_expect_success 'editing message from other commit' '
|
test_expect_success 'editing message from other commit' '
|
||||||
cat >editor <<-\EOF &&
|
cat >editor <<-\EOF &&
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sed -e "s/amend/older/g" < "$1" > "$1-"
|
sed -e "s/amend/older/g" <"$1" >"$1-"
|
||||||
mv "$1-" "$1"
|
mv "$1-" "$1"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 editor &&
|
chmod 755 editor &&
|
||||||
@ -367,7 +367,7 @@ test_expect_success 'amend commit to fix author' '
|
|||||||
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
||||||
expected &&
|
expected &&
|
||||||
git commit --amend --author="$author" &&
|
git commit --amend --author="$author" &&
|
||||||
git cat-file -p HEAD > current &&
|
git cat-file -p HEAD >current &&
|
||||||
test_cmp expected current
|
test_cmp expected current
|
||||||
|
|
||||||
'
|
'
|
||||||
@ -382,7 +382,7 @@ test_expect_success 'amend commit to fix date' '
|
|||||||
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
||||||
expected &&
|
expected &&
|
||||||
git commit --amend --date="$newtick" &&
|
git commit --amend --date="$newtick" &&
|
||||||
git cat-file -p HEAD > current &&
|
git cat-file -p HEAD >current &&
|
||||||
test_cmp expected current
|
test_cmp expected current
|
||||||
|
|
||||||
'
|
'
|
||||||
@ -448,7 +448,7 @@ test_expect_success 'signoff gap' '
|
|||||||
git commit -s -m "welcome
|
git commit -s -m "welcome
|
||||||
|
|
||||||
$alt" &&
|
$alt" &&
|
||||||
git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
|
git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
|
||||||
(
|
(
|
||||||
echo welcome &&
|
echo welcome &&
|
||||||
echo &&
|
echo &&
|
||||||
@ -468,7 +468,7 @@ test_expect_success 'signoff gap 2' '
|
|||||||
|
|
||||||
We have now
|
We have now
|
||||||
$alt" &&
|
$alt" &&
|
||||||
git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
|
git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
|
||||||
(
|
(
|
||||||
echo welcome &&
|
echo welcome &&
|
||||||
echo &&
|
echo &&
|
||||||
@ -489,7 +489,7 @@ test_expect_success 'signoff respects trailer config' '
|
|||||||
|
|
||||||
non-trailer line
|
non-trailer line
|
||||||
Myfooter: x" &&
|
Myfooter: x" &&
|
||||||
git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
|
git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
|
||||||
(
|
(
|
||||||
echo subject &&
|
echo subject &&
|
||||||
echo &&
|
echo &&
|
||||||
@ -506,7 +506,7 @@ Myfooter: x" &&
|
|||||||
|
|
||||||
non-trailer line
|
non-trailer line
|
||||||
Myfooter: x" &&
|
Myfooter: x" &&
|
||||||
git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
|
git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
|
||||||
(
|
(
|
||||||
echo subject &&
|
echo subject &&
|
||||||
echo &&
|
echo &&
|
||||||
@ -560,14 +560,14 @@ test_expect_success 'amend commit to fix author' '
|
|||||||
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
-e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
|
||||||
expected &&
|
expected &&
|
||||||
git commit --amend --author="$author" &&
|
git commit --amend --author="$author" &&
|
||||||
git cat-file -p HEAD > current &&
|
git cat-file -p HEAD >current &&
|
||||||
test_cmp expected current
|
test_cmp expected current
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'git commit <file> with dirty index' '
|
test_expect_success 'git commit <file> with dirty index' '
|
||||||
echo tacocat > elif &&
|
echo tacocat >elif &&
|
||||||
echo tehlulz > chz &&
|
echo tehlulz >chz &&
|
||||||
git add chz &&
|
git add chz &&
|
||||||
git commit elif -m "tacocat is a palindrome" &&
|
git commit elif -m "tacocat is a palindrome" &&
|
||||||
git show --stat | grep elif &&
|
git show --stat | grep elif &&
|
||||||
|
Reference in New Issue
Block a user