[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [githax/master] Oops; add a wc -l
commit 0013d0b273b979badc6b09d254fefe5b3e13ba86
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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" |