]> thyrsus.com Git - src.git/commitdiff
srctest: Add a check for commit messages containing a single-quote
authorMike Swanson <mikeonthecomputer@gmail.com>
Mon, 10 Nov 2014 09:34:20 +0000 (01:34 -0800)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 10 Nov 2014 16:13:21 +0000 (11:13 -0500)
These can cause a shell call to fail.

srctest

diff --git a/srctest b/srctest
index 0eb28880f539ca72a9f24c159dd89562cbd5a38c..20d897f033635189b28da29af686939ec03f357a 100755 (executable)
--- a/srctest
+++ b/srctest
@@ -7,7 +7,7 @@
 umask 0077
 
 # Needs to not be a subdirectory of here, or git gets confused.  Use
-# -u so that `initialization will work.
+# -u so that src's initialization will be tested.
 SANDBOX=$(mktemp -u /tmp/.src_XXXXXXXX)
 
 # Set the PATH to include the current directory, so the repository
@@ -93,14 +93,14 @@ to come to the aid of foo
 EOF
 cp testfile1 testrev3
 
-echo "Third comment" >testfile4
+echo "'Third' comment" >testfile4
 src $TESTOPTS commit -f testfile4 testfile1 >/dev/null
 check "commit with -f"
 
 cat >testfile4 <<EOF
 = testfile1 =================================================================
 3    | 1970-01-02T00:01:00Z
-Third comment
+'Third' comment
 ------------------------------------------------------------------------------
 2    | 1970-01-02T00:02:00Z
 Second comment