Ver código fonte

Fix potential KeyError with 'lines_added' in 55e46db.

[hoxu@users.sf.net: rewrote commit message]

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Wulf C. Krueger 15 anos atrás
pai
commit
1e70f827af
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Ver arquivo

@@ -246,7 +246,7 @@ class GitDataCollector(DataCollector):
246 246
 
247 247
 		# Collect revision statistics
248 248
 		# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
249
-		lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%an <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
249
+		lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
250 250
 		for line in lines:
251 251
 			parts = line.split(' ', 4)
252 252
 			author = ''