浏览代码

Fix commits per tag counting.

A hard-to-spot bug where the total number of commits for a tag was always set
to the number of commits that one of the commiters did and not the cumulated
sum over all commiters.

[hoxu@users.sf.net: created a commit from diff and description sent by Thomas]
Thomas R. Koll 13 年前
父节点
当前提交
ad7efbb939
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 查看文件

273
 				parts = re.split('\s+', line, 2)
273
 				parts = re.split('\s+', line, 2)
274
 				commits = int(parts[1])
274
 				commits = int(parts[1])
275
 				author = parts[2]
275
 				author = parts[2]
276
-				self.tags[tag]['commits'] = commits
276
+				self.tags[tag]['commits'] += commits
277
 				self.tags[tag]['authors'][author] = commits
277
 				self.tags[tag]['authors'][author] = commits
278
 
278
 
279
 		# Collect revision statistics
279
 		# Collect revision statistics