@matheusbsbs / matheus-bagliano / commits / e77235ea38
Fork 0

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>

Luben Tuikov committed Aug 13, 2006 at 00:34 UTC e77235ea38385a127d2afc969435a56d3ff2b16d
1 file changed +1 -1
templates/hooks--commit-msg
+1 -1
@@ -11,4 +11,4 @@
11 # This example catches duplicate Signed-off-by lines.
12
13 test "" = "$(grep '^Signed-off-by: ' "$1" |
14 - sort | uniq -c | sed -e '/^[ ]*1 /d')"
14 + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')"