---
ChangeLog | 4 ++++
lrde-scmstats.sh | 6 +++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8370d97..94f1d18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-09-09 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * lrde-scmstats.sh: Fix division by zero in Gitstats.
+
2011-09-08 Guillaume Lazzara <z(a)lrde.epita.fr>
* lrde-scmstats.sh: New.
diff --git a/lrde-scmstats.sh b/lrde-scmstats.sh
index b10178c..76e89bc 100755
--- a/lrde-scmstats.sh
+++ b/lrde-scmstats.sh
@@ -36,7 +36,11 @@ branch=$1
DEST=/lrde/dload/olena/stats/
-gitstats . $DEST
+# </dev/null is necessary to avoid invalid output from Git commands
+# and division by zero in gistats script. Git commands try to detect
+# whether they are called from a tty and detection may fail if this
+# parameter is omited.
+gitstats . $DEST < /dev/null
# Expose updated files.
chmod -R a+rX $DEST
--
1.7.2.5
Show replies by date