Skip to content

Commit

Permalink
Commit data may be tuple or list for 'author' from dulwich.
Browse files Browse the repository at this point in the history
  • Loading branch information
teward committed Apr 21, 2017
1 parent 7d034fa commit 56a1dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion globalvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ class GlobalVars:
commit['author'] = censored_committer_names[md5(commit['author'][0].encode('utf-8')).hexdigest()]

commit_with_author = "%s (%s: *%s*)" % (commit['id'],
commit['author'][0] if type(commit['author']) is list else commit['author'],
commit['author'][0] if type(commit['author']) in [list, tuple]
else commit['author'],
commit['message'])

on_master = "HEAD detached" not in git_status()
Expand Down

0 comments on commit 56a1dd8

Please sign in to comment.