Use $GITPERLLIB instead of $RUNNING_GIT_TESTS and centralize @INC munging
[gitweb.git] / t / annotate-tests.sh
index 114938c3ff18fadb130e6809fc14e89cfe3f36f2..1148b0257dafd4e9b63e030052b47b527b5c0d3b 100644 (file)
@@ -111,9 +111,7 @@ test_expect_success \
 
 test_expect_success \
     'some edit' \
-    'mv file file1 &&
-     sed -e 1d -e "5s/3A/99/" file1 >file &&
-     rm -f file1 &&
+    'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file &&
     GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
 
 test_expect_success \