From: Mike Swanson Date: Mon, 10 Nov 2014 09:34:20 +0000 (-0800) Subject: srctest: Add a check for commit messages containing a single-quote X-Git-Tag: 0.4~18 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=242fdd8e226211e78536820e0be1e9aa0a1e7fb2;p=src.git srctest: Add a check for commit messages containing a single-quote These can cause a shell call to fail. --- diff --git a/srctest b/srctest index 0eb2888..20d897f 100755 --- 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 <