summaryrefslogtreecommitdiff
path: root/templates/hooks--commit-msg
diff options
context:
space:
mode:
authorLuben Tuikov <ltuikov@yahoo.com>2006-08-13 07:34:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-13 08:46:28 (GMT)
commite77235ea38385a127d2afc969435a56d3ff2b16d (patch)
tree61a5a673a6d926f1588df57683f7e743ef0dff01 /templates/hooks--commit-msg
parent01aaf1f88ddc2b99162c302710339f202996f39b (diff)
downloadgit-e77235ea38385a127d2afc969435a56d3ff2b16d.zip
git-e77235ea38385a127d2afc969435a56d3ff2b16d.tar.gz
git-e77235ea38385a127d2afc969435a56d3ff2b16d.tar.bz2
Fix regex pattern in commit-msg
Between the count and the line output, some uniq(1) versions put a TAB character, not a space. Make sure both are handled. Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'templates/hooks--commit-msg')
-rw-r--r--templates/hooks--commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--commit-msg b/templates/hooks--commit-msg
index 643822d..23617f3 100644
--- a/templates/hooks--commit-msg
+++ b/templates/hooks--commit-msg
@@ -11,4 +11,4 @@
# This example catches duplicate Signed-off-by lines.
test "" = "$(grep '^Signed-off-by: ' "$1" |
- sort | uniq -c | sed -e '/^[ ]*1 /d')"
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')"