Skip to content

Commit

Permalink
Fix regex pattern in commit-msg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luben Tuikov authored and Junio C Hamano committed Aug 13, 2006
1 parent 01aaf1f commit e77235e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks--commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -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')"

0 comments on commit e77235e

Please sign in to comment.