On Fri, Jul 13, 2012 at 9:12 PM, Heikki Hokkanen h...@users.sf.net wrote:
On Thu, Jun 14, 2012 at 5:13 PM, Julien Palard jul...@palard.fr wrote:
I got a :
{{{
Traceback (most recent call last):
File /usr/bin/gitstats, line 1172, in module
g.run(sys.argv[1:])
File /usr/bin/gitstats, line 1165, in run
report.create(data, outputpath)
File /usr/bin/gitstats, line 586, in create
f.write('dtAuthors/dtdd%s (average %.1f commits per author)/dd'
% (data.getTotalAuthors(), (1.0 * data.getTotalCommits()) /
data.getTotalAuthors()))
ZeroDivisionError: float division
}}}
In a normal sized git repository (some devs, some years of push), I
once got this ZeroDivisionError running from a crontab, didn't
reproduced it since.
This is a symptom of an earlier git call (git shortlog -s HEAD |wc
-l) failing. Reason can be anything from temporary filesystem errors
to system libraries or git being upgraded while gitstats is running,
etc.
[...]
To sum it up:
* There was no solid bug in gitstats that can be fixed, as it was the
underlying git call that failed.
* The error message caused by failed author counting was terribly
confusing, and is now fixed in 496228f.
I will leave it up to the discretion of the package maintainer whether
this bug should be closed right away or after 496228f has been pulled
from upstream.
Sorry to have been silent on that for so long... I've been busy with
many things other than Debian recently. The upload is on its way
(although it will not be in wheezy).
Many thanks !
Vincent
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org