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:

committed by
Junio C Hamano

parent
01aaf1f88d
commit
e77235ea38
@ -11,4 +11,4 @@
|
|||||||
# This example catches duplicate Signed-off-by lines.
|
# This example catches duplicate Signed-off-by lines.
|
||||||
|
|
||||||
test "" = "$(grep '^Signed-off-by: ' "$1" |
|
test "" = "$(grep '^Signed-off-by: ' "$1" |
|
||||||
sort | uniq -c | sed -e '/^[ ]*1 /d')"
|
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')"
|
||||||
|
Reference in New Issue
Block a user