Code

Fix regex pattern in commit-msg
authorLuben Tuikov <ltuikov@yahoo.com>
Sun, 13 Aug 2006 07:34:37 +0000 (00:34 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 Aug 2006 08:46:28 +0000 (01:46 -0700)
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>
templates/hooks--commit-msg

index 643822d2351c4547895237992400bd92f492085b..23617f390611f5221149ec1b9bbc5d72092fd04d 100644 (file)
@@ -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')"