mirror of
https://github.com/zhigang1992/linux-configs.git
synced 2026-01-12 17:23:22 +08:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user