зеркало из https://github.com/microsoft/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 <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
01aaf1f88d
Коммит
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')"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче