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>
This commit is contained in:
parent
01aaf1f88d
commit
e77235ea38
@ -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')"
|
||||
|
Loading…
Reference in New Issue
Block a user