Git fork

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>

authored by

Seyi Kuforiji and committed by
Taylor Blau
09bf1225 fd378533

+17 -17
+17 -17
t/t9101-git-svn-props.sh
··· 21 a_empty_crlf= 22 23 cd import 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 30 a_crlf=$(git hash-object -w crlf) 31 - printf "Hello\rWorld\r" > cr 32 a_cr=$(git hash-object -w cr) 33 - printf "Hello\nWorld\n" > lf 34 a_lf=$(git hash-object -w lf) 35 36 - printf "Hello\r\nWorld" > ne_crlf 37 a_ne_crlf=$(git hash-object -w ne_crlf) 38 - printf "Hello\nWorld" > ne_lf 39 a_ne_lf=$(git hash-object -w ne_lf) 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 46 a_empty_lf=$(git hash-object -w empty_lf) 47 - printf "\r" > empty_cr 48 a_empty_cr=$(git hash-object -w empty_cr) 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 test_expect_success 'setup some commits to svn' ' 58 ( 59 cd test_wc && 60 - echo Greetings >> kw.c && 61 poke kw.c && 62 svn_cmd commit -m "Not yet an Id" && 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 name='test svn:keywords ignoring' 76 test_expect_success "$name" \ 77 'git checkout -b mybranch remotes/git-svn && 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 107 108 cd test_wc 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 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 130 131 # / 132 /no-such-file* ··· 153 ' . && 154 svn_cmd commit -m 'propset svn:ignore' 155 ) && 156 - git svn show-ignore > show-ignore.got && 157 cmp show-ignore.expect show-ignore.got 158 " 159
··· 21 a_empty_crlf= 22 23 cd import 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 30 a_crlf=$(git hash-object -w crlf) 31 + printf "Hello\rWorld\r" >cr 32 a_cr=$(git hash-object -w cr) 33 + printf "Hello\nWorld\n" >lf 34 a_lf=$(git hash-object -w lf) 35 36 + printf "Hello\r\nWorld" >ne_crlf 37 a_ne_crlf=$(git hash-object -w ne_crlf) 38 + printf "Hello\nWorld" >ne_lf 39 a_ne_lf=$(git hash-object -w ne_lf) 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 46 a_empty_lf=$(git hash-object -w empty_lf) 47 + printf "\r" >empty_cr 48 a_empty_cr=$(git hash-object -w empty_cr) 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 test_expect_success 'setup some commits to svn' ' 58 ( 59 cd test_wc && 60 + echo Greetings >>kw.c && 61 poke kw.c && 62 svn_cmd commit -m "Not yet an Id" && 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 name='test svn:keywords ignoring' 76 test_expect_success "$name" \ 77 'git checkout -b mybranch remotes/git-svn && 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 107 108 cd test_wc 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 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 130 131 # / 132 /no-such-file* ··· 153 ' . && 154 svn_cmd commit -m 'propset svn:ignore' 155 ) && 156 + git svn show-ignore >show-ignore.got && 157 cmp show-ignore.expect show-ignore.got 158 " 159