Bug#677525: gitstats: ZeroDivisionError computing comits by authors

2012-08-30 Thread Vincent Fourmond
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



Bug#677525: gitstats: ZeroDivisionError computing comits by authors

2012-06-14 Thread Julien Palard
Package: gitstats
Version: 2010.07.27-1
Severity: normal

Hello,

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.

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gitstats depends on:
ii  git [git-core]  1:1.7.2.5-3  fast, scalable, distributed revisi
ii  git-core1:1.7.2.5-3  fast, scalable, distributed revisi
ii  gnuplot-nox 4.4.0-1.1+b1 A command-line driven interactive
ii  python  2.6.6-3+squeeze7 interactive high-level object-orie

gitstats recommends no packages.

gitstats suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org