Skip to content

Commit 09bf122

Browse files
Seyi007ttaylorr
authored andcommitted
t9101: ensure no whitespace after redirect
This change updates the script to conform to the coding standards outlined in the Git project's documentation. According to the guidelines in Documentation/CodingGuidelines under "Redirection operators", there should be no whitespace after redirection operators. Signed-off-by: Seyi Kuforiji <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent fd37853 commit 09bf122

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

t/t9101-git-svn-props.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,32 @@ a_empty_cr=
2121
a_empty_crlf=
2222

2323
cd import
24-
cat >> kw.c <<\EOF
24+
cat >>kw.c <<\EOF
2525
/* Somebody prematurely put a keyword into this file */
2626
/* $Id$ */
2727
EOF
2828

29-
printf "Hello\r\nWorld\r\n" > crlf
29+
printf "Hello\r\nWorld\r\n" >crlf
3030
a_crlf=$(git hash-object -w crlf)
31-
printf "Hello\rWorld\r" > cr
31+
printf "Hello\rWorld\r" >cr
3232
a_cr=$(git hash-object -w cr)
33-
printf "Hello\nWorld\n" > lf
33+
printf "Hello\nWorld\n" >lf
3434
a_lf=$(git hash-object -w lf)
3535

36-
printf "Hello\r\nWorld" > ne_crlf
36+
printf "Hello\r\nWorld" >ne_crlf
3737
a_ne_crlf=$(git hash-object -w ne_crlf)
38-
printf "Hello\nWorld" > ne_lf
38+
printf "Hello\nWorld" >ne_lf
3939
a_ne_lf=$(git hash-object -w ne_lf)
40-
printf "Hello\rWorld" > ne_cr
40+
printf "Hello\rWorld" >ne_cr
4141
a_ne_cr=$(git hash-object -w ne_cr)
4242

4343
touch empty
4444
a_empty=$(git hash-object -w empty)
45-
printf "\n" > empty_lf
45+
printf "\n" >empty_lf
4646
a_empty_lf=$(git hash-object -w empty_lf)
47-
printf "\r" > empty_cr
47+
printf "\r" >empty_cr
4848
a_empty_cr=$(git hash-object -w empty_cr)
49-
printf "\r\n" > empty_crlf
49+
printf "\r\n" >empty_crlf
5050
a_empty_crlf=$(git hash-object -w empty_crlf)
5151

5252
svn_cmd import --no-auto-props -m 'import for git svn' . "$svnrepo" >/dev/null
@@ -57,10 +57,10 @@ test_expect_success 'checkout working copy from svn' 'svn co "$svnrepo" test_wc'
5757
test_expect_success 'setup some commits to svn' '
5858
(
5959
cd test_wc &&
60-
echo Greetings >> kw.c &&
60+
echo Greetings >>kw.c &&
6161
poke kw.c &&
6262
svn_cmd commit -m "Not yet an Id" &&
63-
echo Hello world >> kw.c &&
63+
echo Hello world >>kw.c &&
6464
poke kw.c &&
6565
svn_cmd commit -m "Modified file, but still not yet an Id" &&
6666
svn_cmd propset svn:keywords Id kw.c &&
@@ -75,7 +75,7 @@ test_expect_success 'fetch revisions from svn' 'git svn fetch'
7575
name='test svn:keywords ignoring'
7676
test_expect_success "$name" \
7777
'git checkout -b mybranch remotes/git-svn &&
78-
echo Hi again >> kw.c &&
78+
echo Hi again >>kw.c &&
7979
git commit -a -m "test keywords ignoring" &&
8080
git svn set-tree remotes/git-svn..mybranch &&
8181
git pull . remotes/git-svn'
@@ -106,8 +106,8 @@ done
106106

107107

108108
cd test_wc
109-
printf '$Id$\rHello\rWorld\r' > cr
110-
printf '$Id$\rHello\rWorld' > ne_cr
109+
printf '$Id$\rHello\rWorld\r' >cr
110+
printf '$Id$\rHello\rWorld' >ne_cr
111111
a_cr=$(printf '$Id$\r\nHello\r\nWorld\r\n' | git hash-object --stdin)
112112
a_ne_cr=$(printf '$Id$\r\nHello\r\nWorld' | git hash-object --stdin)
113113
test_expect_success 'Set CRLF on cr files' \
@@ -126,7 +126,7 @@ b_ne_cr="$(git hash-object ne_cr)"
126126
test_expect_success 'CRLF + $Id$' "test '$a_cr' = '$b_cr'"
127127
test_expect_success 'CRLF + $Id$ (no newline)' "test '$a_ne_cr' = '$b_ne_cr'"
128128

129-
cat > show-ignore.expect <<\EOF
129+
cat >show-ignore.expect <<\EOF
130130
131131
# /
132132
/no-such-file*
@@ -153,7 +153,7 @@ no-such-file*
153153
' . &&
154154
svn_cmd commit -m 'propset svn:ignore'
155155
) &&
156-
git svn show-ignore > show-ignore.got &&
156+
git svn show-ignore >show-ignore.got &&
157157
cmp show-ignore.expect show-ignore.got
158158
"
159159

0 commit comments

Comments
 (0)