From 5d3016377902eeacec081abc6146ddf11a879bca Mon Sep 17 00:00:00 2001 From: Tom Swartz Date: Thu, 9 Jan 2014 13:35:09 -0500 Subject: [PATCH] Correct prepare-commit-msg for Git Amends Corrected the grep to properly identify the 'tested on' string, and prevent it's inclusion if present. The 'tested on' string should still be included if the amendment is made on a later date. Tested-on: arcturus <09 Jan 2014> --- prepare-commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepare-commit-msg b/prepare-commit-msg index 1ecfdab..24a1663 100755 --- a/prepare-commit-msg +++ b/prepare-commit-msg @@ -14,4 +14,4 @@ DATE=$(date +"%d %b %Y") HOSTNAME=$HOSTNAME TestedMSG="Tested-on: $HOSTNAME <$DATE>" -grep -qs "^TestedMSG" "$1" || echo "$TestedMSG" >> "$1" +grep -qs "$TestedMSG" "$1" || echo "$TestedMSG" >> "$1"