git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix regex pattern in commit-msg
@ 2006-08-13  7:34 Luben Tuikov
  0 siblings, 0 replies; only message in thread
From: Luben Tuikov @ 2006-08-13  7:34 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

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(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 2795696785-p1.patch --]
[-- Type: text/inline; name="p1.patch", Size: 440 bytes --]

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-13  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-13  7:34 [PATCH] Fix regex pattern in commit-msg Luben Tuikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).