Преглед изворни кода

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,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