Skip to content

Commit

Permalink
Fix potential KeyError with 'lines_added' in 55e46db.
Browse files Browse the repository at this point in the history
[hoxu@users.sf.net: rewrote commit message]

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
  • Loading branch information
Philantrop authored and hoxu committed Jul 2, 2010
1 parent 55e46db commit 1e70f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstats
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class GitDataCollector(DataCollector):

# Collect revision statistics
# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%an <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
for line in lines:
parts = line.split(' ', 4)
author = ''
Expand Down

0 comments on commit 1e70f82

Please sign in to comment.