Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/annotate-tests: Use echo & cat instead of sed
author
Brian Gernhardt
<brian@gernhardtsoftware.com>
Thu, 5 May 2011 04:43:37 +0000
(
00:43
-0400)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 5 May 2011 16:24:21 +0000
(09:24 -0700)
The use of the sed command "1i No robots allowed" caused the version
of sed in OS X to die with
sed: 1: "1i "No robots allowed"\n": command i expects \ followed by
text
Since this command was just trying to add a single line to the
beginning of the file, do the same with "echo" followed by "cat".
Unbreaks t8001 and t8002 on OS X 10.6.7
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/annotate-tests.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9b01f00
)
diff --git
a/t/annotate-tests.sh
b/t/annotate-tests.sh
index abb18859574a382e41c41dc27835dd9727f45e9e..c56a77d2378117006694d4b575445f89446ae80c 100644
(file)
--- a/
t/annotate-tests.sh
+++ b/
t/annotate-tests.sh
@@
-127,7
+127,8
@@
test_expect_success \
test_expect_success \
'an obfuscated email added' \
- 'sed -e "1i No robots allowed" < file > file.new &&
+ 'echo "No robots allowed" > file.new &&
+ cat file >> file.new &&
mv file.new file &&
GIT_AUTHOR_NAME="E" GIT_AUTHOR_EMAIL="E at test dot git" git commit -a -m "norobots"'