Browse Source

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 years ago
parent
commit
ad7efbb939
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gitstats

+ 1
- 1
gitstats View File

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