[or-cvs] [githax/master] Oops; add a wc -l

nickm at torproject.org nickm at torproject.org
Sat Jan 15 22:57:48 UTC 2011


commit 0013d0b273b979badc6b09d254fefe5b3e13ba86
Author: Nick Mathewson <nickm at torproject.org>
Date:   Sat Jan 15 17:57:49 2011 -0500

    Oops; add a wc -l
---
 hooks/logs_to_emails.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hooks/logs_to_emails.pl b/hooks/logs_to_emails.pl
index af62f78..17fb9ea 100755
--- a/hooks/logs_to_emails.pl
+++ b/hooks/logs_to_emails.pl
@@ -19,7 +19,7 @@ use strict;
 
 # Suggested use in a commit script:
 my $suggested_use = q[
-    TOTAL_N_COMMITS=`git log --pretty=format:oneline "$oldrev..$newrev"`
+    TOTAL_N_COMMITS=`git log --pretty=format:oneline "$oldrev..$newrev" | wc -l`
     export TOTAL_N_COMMITS
 
     git log --reverse -p --stat --cc "$oldrev..$newrev" |



More information about the tor-commits mailing list