From: Luben Tuikov Date: Sun, 13 Aug 2006 07:34:37 +0000 (-0700) Subject: Fix regex pattern in commit-msg X-Git-Tag: v1.4.2.1~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e77235ea38385a127d2afc969435a56d3ff2b16d;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/templates/hooks--commit-msg b/templates/hooks--commit-msg index 643822d23..23617f390 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')"