git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix regex pattern in commit-msg

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Aug 13, 2006, 07:34 UTC
Message-ID
<20060813073437.1889.qmail@web31805.mail.mud.yahoo.com>

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>
---
 templates/hooks--commit-msg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/templates/hooks--commit-msg b/templates/hooks--commit-msg
index 643822d..23617f3 100644
--- a/templates/hooks--commit-msg
+++ b/templates/hooks--commit-msg
@@ -11,4 +11,4 @@ # To enable this hook, make this file ex
 # 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')"
-- 
1.4.2.rc3.gb9227
Message 1 of 1 in “Fix regex pattern in commit-msg”
  1. Fix regex pattern in commit-msgLuben Tuikov, Aug 13, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.