hooks-pre-commit: use \t, rather than a literal TAB in regexp
[gitweb.git] / t / annotate-tests.sh
index b5ceba4acfd8e862cfc5a77672241e07205f70ea..cacb273afff1fbddf152bb440451fa141589cf33 100644 (file)
@@ -113,7 +113,9 @@ test_expect_success \
 
 test_expect_success \
     'some edit' \
-    'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file &&
+    'mv file file.orig &&
+    sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" < file.orig > file &&
+    echo "incomplete" | tr -d "\\012" >>file &&
     GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
 
 test_expect_success \