t9500: 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: Andrei Rybak <rybak.a.v@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andrei Rybak committed
Mar 22, 2020 at 22:14 UTC
9b966fffc26d378cc11bd3e924f979403ab174dc
1 file changed
+35
-35
t/t9500-gitweb-standalone-no-errors.sh
+35
-35
@@ -53,7 +53,7 @@ test_expect_success \
53
54
test_expect_success \
55
'Make initial commit' \
56
- 'echo "Not an empty file." > file &&
56
+ 'echo "Not an empty file." >file &&
57
git add file &&
58
git commit -a -m "Initial commit." &&
59
git branch b'
@@ -139,7 +139,7 @@ test_expect_success \
139
140
test_expect_success \
141
'commitdiff(0): file added' \
142
- 'echo "New file" > new_file &&
142
+ 'echo "New file" >new_file &&
143
git add new_file &&
144
git commit -a -m "File added." &&
145
gitweb_run "p=.git;a=commitdiff"'
@@ -179,7 +179,7 @@ test_expect_success \
179
180
test_expect_success \
181
'commitdiff(0): mode change and modified' \
182
- 'echo "New line" >> file2 &&
182
+ 'echo "New line" >>file2 &&
183
test_chmod +x file2 &&
184
git commit -a -m "Mode change and modification." &&
185
gitweb_run "p=.git;a=commitdiff"'
@@ -197,14 +197,14 @@ propter nomen suum.
197
EOF
198
git commit -a -m "File added." &&
199
git mv file2 file3 &&
200
- echo "Propter nomen suum." >> file3 &&
200
+ echo "Propter nomen suum." >>file3 &&
201
git commit -a -m "File rename and modification." &&
202
gitweb_run "p=.git;a=commitdiff"'
203
204
test_expect_success \
205
'commitdiff(0): renamed, mode change and modified' \
206
'git mv file3 file2 &&
207
- echo "Propter nomen suum." >> file2 &&
207
+ echo "Propter nomen suum." >>file2 &&
208
test_chmod +x file2 &&
209
git commit -a -m "File rename, mode change and modification." &&
210
gitweb_run "p=.git;a=commitdiff"'
@@ -213,8 +213,8 @@ test_expect_success \
213
# commitdiff testing (taken from t4114-apply-typechange.sh)
214
215
test_expect_success 'setup typechange commits' '
216
- echo "hello world" > foo &&
217
- echo "hi planet" > bar &&
216
+ echo "hello world" >foo &&
217
+ echo "hi planet" >bar &&
218
git update-index --add foo bar &&
219
git commit -m initial &&
220
git branch initial &&
@@ -223,18 +223,18 @@ test_expect_success 'setup typechange commits' '
223
git commit -m "foo symlinked to bar" &&
224
git branch foo-symlinked-to-bar &&
225
rm -f foo &&
226
- echo "how far is the sun?" > foo &&
226
+ echo "how far is the sun?" >foo &&
227
git update-index foo &&
228
git commit -m "foo back to file" &&
229
git branch foo-back-to-file &&
230
rm -f foo &&
231
git update-index --remove foo &&
232
mkdir foo &&
233
- echo "if only I knew" > foo/baz &&
233
+ echo "if only I knew" >foo/baz &&
234
git update-index --add foo/baz &&
235
git commit -m "foo becomes a directory" &&
236
git branch "foo-becomes-a-directory" &&
237
- echo "hello world" > foo/baz &&
237
+ echo "hello world" >foo/baz &&
238
git update-index foo/baz &&
239
git commit -m "foo/baz is the original foo" &&
240
git branch foo-baz-renamed-from-foo
@@ -324,7 +324,7 @@ test_expect_success 'commitdiff(1): removal of incomplete line' '
324
test_expect_success \
325
'Create a merge' \
326
'git checkout b &&
327
- echo "Branch" >> b &&
327
+ echo "Branch" >>b &&
328
git add b &&
329
git commit -a -m "On branch" &&
330
git checkout master &&
@@ -342,26 +342,26 @@ test_expect_success \
342
test_expect_success \
343
'Prepare large commit' \
344
'git checkout b &&
345
- echo "To be changed" > 01-change &&
346
- echo "To be renamed" > 02-pure-rename-from &&
347
- echo "To be deleted" > 03-delete &&
348
- echo "To be renamed and changed" > 04-rename-from &&
349
- echo "To have mode changed" > 05-mode-change &&
350
- echo "File to symlink" > 06-file-or-symlink &&
351
- echo "To be changed and have mode changed" > 07-change-mode-change &&
345
+ echo "To be changed" >01-change &&
346
+ echo "To be renamed" >02-pure-rename-from &&
347
+ echo "To be deleted" >03-delete &&
348
+ echo "To be renamed and changed" >04-rename-from &&
349
+ echo "To have mode changed" >05-mode-change &&
350
+ echo "File to symlink" >06-file-or-symlink &&
351
+ echo "To be changed and have mode changed" >07-change-mode-change &&
352
git add 0* &&
353
git commit -a -m "Prepare large commit" &&
354
- echo "Changed" > 01-change &&
354
+ echo "Changed" >01-change &&
355
git mv 02-pure-rename-from 02-pure-rename-to &&
356
git rm 03-delete && rm -f 03-delete &&
357
- echo "A new file" > 03-new &&
357
+ echo "A new file" >03-new &&
358
git add 03-new &&
359
git mv 04-rename-from 04-rename-to &&
360
- echo "Changed" >> 04-rename-to &&
360
+ echo "Changed" >>04-rename-to &&
361
test_chmod +x 05-mode-change &&
362
rm -f 06-file-or-symlink &&
363
test_ln_s_add 01-change 06-file-or-symlink &&
364
- echo "Changed and have mode changed" > 07-change-mode-change &&
364
+ echo "Changed and have mode changed" >07-change-mode-change &&
365
test_chmod +x 07-change-mode-change &&
366
git commit -a -m "Large commit" &&
367
git checkout master'
@@ -444,7 +444,7 @@ test_expect_success \
444
test_expect_success \
445
'logs: history (implicit HEAD, deleted file)' \
446
'git checkout master &&
447
- echo "to be deleted" > deleted_file &&
447
+ echo "to be deleted" >deleted_file &&
448
git add deleted_file &&
449
git commit -m "Add file to be deleted" &&
450
git rm deleted_file &&
@@ -522,7 +522,7 @@ test_expect_success \
522
'. "$TEST_DIRECTORY"/t3901/utf8.txt &&
523
test_when_finished "GIT_AUTHOR_NAME=\"A U Thor\"" &&
524
test_when_finished "GIT_COMMITTER_NAME=\"C O Mitter\"" &&
525
- echo "UTF-8" >> file &&
525
+ echo "UTF-8" >>file &&
526
git add file &&
527
git commit -F "$TEST_DIRECTORY"/t3900/1-UTF-8.txt &&
528
gitweb_run "p=.git;a=commit"'
@@ -532,7 +532,7 @@ test_expect_success \
532
'. "$TEST_DIRECTORY"/t3901/8859-1.txt &&
533
test_when_finished "GIT_AUTHOR_NAME=\"A U Thor\"" &&
534
test_when_finished "GIT_COMMITTER_NAME=\"C O Mitter\"" &&
535
- echo "ISO-8859-1" >> file &&
535
+ echo "ISO-8859-1" >>file &&
536
git add file &&
537
test_config i18n.commitencoding ISO-8859-1 &&
538
git commit -F "$TEST_DIRECTORY"/t3900/ISO8859-1.txt &&
@@ -675,8 +675,8 @@ test_expect_success \
675
676
test_expect_success \
677
'README.html with non-ASCII characters (utf-8)' \
678
- 'echo "<b>UTF-8 example:</b><br />" > .git/README.html &&
679
- cat "$TEST_DIRECTORY"/t3900/1-UTF-8.txt >> .git/README.html &&
678
+ 'echo "<b>UTF-8 example:</b><br />" >.git/README.html &&
679
+ cat "$TEST_DIRECTORY"/t3900/1-UTF-8.txt >>.git/README.html &&
680
gitweb_run "p=.git;a=summary"'
681
682
# ----------------------------------------------------------------------
@@ -704,7 +704,7 @@ test_expect_success HIGHLIGHT \
704
test_expect_success HIGHLIGHT \
705
'syntax highlighting (highlighted, shell script)' \
706
'git config gitweb.highlight yes &&
707
- echo "#!/usr/bin/sh" > test.sh &&
707
+ echo "#!/usr/bin/sh" >test.sh &&
708
git add test.sh &&
709
git commit -m "Add test.sh" &&
710
gitweb_run "p=.git;a=blob;f=test.sh"'
@@ -712,7 +712,7 @@ test_expect_success HIGHLIGHT \
712
test_expect_success HIGHLIGHT \
713
'syntax highlighting (highlighter language autodetection)' \
714
'git config gitweb.highlight yes &&
715
- echo "#!/usr/bin/perl" > test &&
715
+ echo "#!/usr/bin/perl" >test &&
716
git add test &&
717
git commit -m "Add test" &&
718
gitweb_run "p=.git;a=blob;f=test"'
@@ -729,11 +729,11 @@ test_expect_success \
729
'git init --bare foo.git &&
730
git --git-dir=foo.git --work-tree=. add file &&
731
git --git-dir=foo.git --work-tree=. commit -m "Initial commit" &&
732
- echo "foo" > foo.git/description &&
732
+ echo "foo" >foo.git/description &&
733
mkdir -p foo &&
734
(cd foo &&
735
git clone --shared --bare ../foo.git foo-forked.git &&
736
- echo "fork of foo" > foo-forked.git/description)'
736
+ echo "fork of foo" >foo-forked.git/description)'
737
738
test_expect_success \
739
'forks: projects list' \
@@ -754,8 +754,8 @@ EOF
754
test_expect_success \
755
'ctags: tag cloud in projects list' \
756
'mkdir .git/ctags &&
757
- echo "2" > .git/ctags/foo &&
758
- echo "1" > .git/ctags/bar &&
757
+ echo "2" >.git/ctags/foo &&
758
+ echo "1" >.git/ctags/bar &&
759
gitweb_run'
760
761
test_expect_success \
@@ -769,8 +769,8 @@ test_expect_success \
769
test_expect_success \
770
'ctags: malformed tag weights' \
771
'mkdir -p .git/ctags &&
772
- echo "not-a-number" > .git/ctags/nan &&
773
- echo "not-a-number-2" > .git/ctags/nan2 &&
772
+ echo "not-a-number" >.git/ctags/nan &&
773
+ echo "not-a-number-2" >.git/ctags/nan2 &&
774
echo "0.1" >.git/ctags/floating-point &&
775
gitweb_run'
776