]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/t0108-patch.sh
tests: check that Git version are in sync
[ps-cgit] / tests / t0108-patch.sh
index e608104733c299340c472eac9ed6e0408b966cd5..f92f69cd520b8648a3842d2cf50a5e18d0c847a2 100755 (executable)
@@ -9,23 +9,23 @@ run_test 'generate foo/patch' '
 '
 
 run_test 'find `From:` line' '
-       grep -e "^From: " trash/tmp
+       grep "^From: " trash/tmp
 '
 
 run_test 'find `Date:` line' '
-       grep -e "^Date: " trash/tmp
+       grep "^Date: " trash/tmp
 '
 
 run_test 'find `Subject:` line' '
-       grep -e "^Subject: commit 5" trash/tmp
+       grep "^Subject: commit 5" trash/tmp
 '
 
 run_test 'find `cgit` signature' '
-        tail -1 trash/tmp | grep -e "^cgit"
+       tail -1 trash/tmp | grep "^cgit"
 '
 
 run_test 'find initial commit' '
-       root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1)
+       root=$(git --git-dir="$PWD/trash/repos/foo/.git" rev-list HEAD | tail -1)
 '
 
 run_test 'generate patch for initial commit' '
@@ -33,7 +33,7 @@ run_test 'generate patch for initial commit' '
 '
 
 run_test 'find `cgit` signature' '
-       tail -1 trash/tmp | grep -e "^cgit"
+       tail -1 trash/tmp | grep "^cgit"
 '
 
 tests_done