@matheusbsbs / matheus-bagliano / commits / 38c1aa01de
Fork 0

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>

Denton Liu committed Nov 27, 2019 at 11:53 UTC 38c1aa01de8220f84460ef115f1c1fc58b590240
1 file changed +11 -11
t/t7501-commit-basic-functionality.sh
+11 -11
@@ -150,7 +150,7 @@ test_expect_success 'setup: commit message from file' '
150 test_expect_success 'amend commit' '
151 cat >editor <<-\EOF &&
152 #!/bin/sh
153 - sed -e "s/a file/an amend commit/g" < "$1" > "$1-"
153 + sed -e "s/a file/an amend commit/g" <"$1" >"$1-"
154 mv "$1-" "$1"
155 EOF
156 chmod 755 editor &&
@@ -263,7 +263,7 @@ test_expect_success 'using message from other commit' '
263 test_expect_success 'editing message from other commit' '
264 cat >editor <<-\EOF &&
265 #!/bin/sh
266 - sed -e "s/amend/older/g" < "$1" > "$1-"
266 + sed -e "s/amend/older/g" <"$1" >"$1-"
267 mv "$1-" "$1"
268 EOF
269 chmod 755 editor &&
@@ -367,7 +367,7 @@ test_expect_success 'amend commit to fix author' '
367 -e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
368 expected &&
369 git commit --amend --author="$author" &&
370 - git cat-file -p HEAD > current &&
370 + git cat-file -p HEAD >current &&
371 test_cmp expected current
372
373 '
@@ -382,7 +382,7 @@ test_expect_success 'amend commit to fix date' '
382 -e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
383 expected &&
384 git commit --amend --date="$newtick" &&
385 - git cat-file -p HEAD > current &&
385 + git cat-file -p HEAD >current &&
386 test_cmp expected current
387
388 '
@@ -448,7 +448,7 @@ test_expect_success 'signoff gap' '
448 git commit -s -m "welcome
449
450 $alt" &&
451 - git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
451 + git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
452 (
453 echo welcome &&
454 echo &&
@@ -468,7 +468,7 @@ test_expect_success 'signoff gap 2' '
468
469 We have now
470 $alt" &&
471 - git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
471 + git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
472 (
473 echo welcome &&
474 echo &&
@@ -489,7 +489,7 @@ test_expect_success 'signoff respects trailer config' '
489
490 non-trailer line
491 Myfooter: x" &&
492 - git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
492 + git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
493 (
494 echo subject &&
495 echo &&
@@ -506,7 +506,7 @@ Myfooter: x" &&
506
507 non-trailer line
508 Myfooter: x" &&
509 - git cat-file commit HEAD | sed -e "1,/^\$/d" > actual &&
509 + git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
510 (
511 echo subject &&
512 echo &&
@@ -560,14 +560,14 @@ test_expect_success 'amend commit to fix author' '
560 -e "s/^\(committer.*> \).*$/\1$GIT_COMMITTER_DATE/" > \
561 expected &&
562 git commit --amend --author="$author" &&
563 - git cat-file -p HEAD > current &&
563 + git cat-file -p HEAD >current &&
564 test_cmp expected current
565
566 '
567
568 test_expect_success 'git commit <file> with dirty index' '
569 - echo tacocat > elif &&
570 - echo tehlulz > chz &&
569 + echo tacocat >elif &&
570 + echo tehlulz >chz &&
571 git add chz &&
572 git commit elif -m "tacocat is a palindrome" &&
573 git show --stat | grep elif &&