Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
t/annotate-tests: Use echo & cat instead of sed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benabik authored and gitster committed May 5, 2011
1 parent 9b01f00 commit c01bd5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/annotate-tests.sh
Expand Up @@ -127,7 +127,8 @@ test_expect_success \


test_expect_success \ test_expect_success \
'an obfuscated email added' \ '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 && mv file.new file &&
GIT_AUTHOR_NAME="E" GIT_AUTHOR_EMAIL="E at test dot git" git commit -a -m "norobots"' GIT_AUTHOR_NAME="E" GIT_AUTHOR_EMAIL="E at test dot git" git commit -a -m "norobots"'


Expand Down

0 comments on commit c01bd5a

Please sign in to comment.