From 242fdd8e226211e78536820e0be1e9aa0a1e7fb2 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Mon, 10 Nov 2014 01:34:20 -0800 Subject: [PATCH] srctest: Add a check for commit messages containing a single-quote These can cause a shell call to fail. --- srctest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 <