completion: consolidate test_completion*() tests
[gitweb.git] / t / annotate-tests.sh
index abb18859574a382e41c41dc27835dd9727f45e9e..c56a77d2378117006694d4b575445f89446ae80c 100644 (file)
@@ -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"'