submodule summary: do not fail before the first commit
[gitweb.git] / t / annotate-tests.sh
index b5ceba4acfd8e862cfc5a77672241e07205f70ea..396b9653a3ad80490cf360c86a910edff58862a2 100644 (file)
@@ -113,7 +113,12 @@ test_expect_success \
 
 test_expect_success \
     'some edit' \
-    'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file &&
+    'mv file file.orig &&
+    {
+       cat file.orig &&
+       echo
+    } | sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" > file &&
+    echo "incomplete" | tr -d "\\012" >>file &&
     GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
 
 test_expect_success \