Skip to content

Commit e77235e

Browse files
ltuikovJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 01aaf1f commit e77235e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/hooks--commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# This example catches duplicate Signed-off-by lines.
1212

1313
test "" = "$(grep '^Signed-off-by: ' "$1" |
14-
sort | uniq -c | sed -e '/^[ ]*1 /d')"
14+
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')"

0 commit comments

Comments
 (0)