aboutsummaryrefslogtreecommitdiff
path: root/t/annotate-tests.sh
diff options
context:
space:
mode:
authorBrian Gernhardt <brian@gernhardtsoftware.com>2011-05-05 00:43:37 -0400
committerJunio C Hamano <gitster@pobox.com>2011-05-05 09:24:21 -0700
commitc01bd5a29f38e4e9fd5c03f3e1e84b88c392dd6f (patch)
tree4459a25676b63fb2167a3e5efe7276751252868f /t/annotate-tests.sh
parent9b01f0038b63ccdf697b2387f4fcd4b03bd249d5 (diff)
downloadgit-c01bd5a29f38e4e9fd5c03f3e1e84b88c392dd6f.tar.gz
git-c01bd5a29f38e4e9fd5c03f3e1e84b88c392dd6f.tar.xz
t/annotate-tests: Use echo & cat instead of sed
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>
Diffstat (limited to 't/annotate-tests.sh')
-rw-r--r--t/annotate-tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh
index abb188595..c56a77d23 100644
--- 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"'