Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix regex pattern in commit-msg
author
Luben Tuikov
<ltuikov@yahoo.com>
Sun, 13 Aug 2006 07:34:37 +0000
(
00:34
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 13 Aug 2006 08:46:28 +0000
(
01:46
-0700)
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>
templates/hooks--commit-msg
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
01aaf1f
)
diff --git
a/templates/hooks--commit-msg
b/templates/hooks--commit-msg
index 643822d2351c4547895237992400bd92f492085b..23617f390611f5221149ec1b9bbc5d72092fd04d 100644
(file)
--- a/
templates/hooks--commit-msg
+++ b/
templates/hooks--commit-msg
@@
-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')"