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 <kuforiji98@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Seyi Kuforiji committed
Oct 23, 2024 at 13:11 UTC
09bf12250736045cddcbef94bdcf65ca9cd27902
1 file changed
+17
-17
t/t9101-git-svn-props.sh
+17
-17
@@ -21,32 +21,32 @@ a_empty_cr=
21
a_empty_crlf=
22
23
cd import
24
- cat >> kw.c <<\EOF
24
+ cat >>kw.c <<\EOF
25
/* Somebody prematurely put a keyword into this file */
26
/* $Id$ */
27
EOF
28
29
- printf "Hello\r\nWorld\r\n" > crlf
29
+ printf "Hello\r\nWorld\r\n" >crlf
30
a_crlf=$(git hash-object -w crlf)
31
- printf "Hello\rWorld\r" > cr
31
+ printf "Hello\rWorld\r" >cr
32
a_cr=$(git hash-object -w cr)
33
- printf "Hello\nWorld\n" > lf
33
+ printf "Hello\nWorld\n" >lf
34
a_lf=$(git hash-object -w lf)
35
36
- printf "Hello\r\nWorld" > ne_crlf
36
+ printf "Hello\r\nWorld" >ne_crlf
37
a_ne_crlf=$(git hash-object -w ne_crlf)
38
- printf "Hello\nWorld" > ne_lf
38
+ printf "Hello\nWorld" >ne_lf
39
a_ne_lf=$(git hash-object -w ne_lf)
40
- printf "Hello\rWorld" > ne_cr
40
+ printf "Hello\rWorld" >ne_cr
41
a_ne_cr=$(git hash-object -w ne_cr)
42
43
touch empty
44
a_empty=$(git hash-object -w empty)
45
- printf "\n" > empty_lf
45
+ printf "\n" >empty_lf
46
a_empty_lf=$(git hash-object -w empty_lf)
47
- printf "\r" > empty_cr
47
+ printf "\r" >empty_cr
48
a_empty_cr=$(git hash-object -w empty_cr)
49
- printf "\r\n" > empty_crlf
49
+ printf "\r\n" >empty_crlf
50
a_empty_crlf=$(git hash-object -w empty_crlf)
51
52
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'
57
test_expect_success 'setup some commits to svn' '
58
(
59
cd test_wc &&
60
- echo Greetings >> kw.c &&
60
+ echo Greetings >>kw.c &&
61
poke kw.c &&
62
svn_cmd commit -m "Not yet an Id" &&
63
- echo Hello world >> kw.c &&
63
+ echo Hello world >>kw.c &&
64
poke kw.c &&
65
svn_cmd commit -m "Modified file, but still not yet an Id" &&
66
svn_cmd propset svn:keywords Id kw.c &&
@@ -75,7 +75,7 @@ test_expect_success 'fetch revisions from svn' 'git svn fetch'
75
name='test svn:keywords ignoring'
76
test_expect_success "$name" \
77
'git checkout -b mybranch remotes/git-svn &&
78
- echo Hi again >> kw.c &&
78
+ echo Hi again >>kw.c &&
79
git commit -a -m "test keywords ignoring" &&
80
git svn set-tree remotes/git-svn..mybranch &&
81
git pull . remotes/git-svn'
@@ -106,8 +106,8 @@ done
106
107
108
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
111
a_cr=$(printf '$Id$\r\nHello\r\nWorld\r\n' | git hash-object --stdin)
112
a_ne_cr=$(printf '$Id$\r\nHello\r\nWorld' | git hash-object --stdin)
113
test_expect_success 'Set CRLF on cr files' \
@@ -126,7 +126,7 @@ b_ne_cr="$(git hash-object ne_cr)"
126
test_expect_success 'CRLF + $Id$' "test '$a_cr' = '$b_cr'"
127
test_expect_success 'CRLF + $Id$ (no newline)' "test '$a_ne_cr' = '$b_ne_cr'"
128
129
-cat > show-ignore.expect <<\EOF
129
+cat >show-ignore.expect <<\EOF
130
131
# /
132
/no-such-file*
@@ -153,7 +153,7 @@ no-such-file*
153
' . &&
154
svn_cmd commit -m 'propset svn:ignore'
155
) &&
156
- git svn show-ignore > show-ignore.got &&
156
+ git svn show-ignore >show-ignore.got &&
157
cmp show-ignore.expect show-ignore.got
158
"
159