Skip to content

Commit

Permalink
Use system user name whenever a git email isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
rdipardo committed Jul 2, 2021
1 parent 25bdef7 commit c48dc93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rplugin/pythonx/cpywrite/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ def _get_source_author():

except (IOError, OSError, CalledProcessError, AttributeError):
pass
finally:
if bool(git_username):
author = git_username

if bool(git_username):
author = git_username

return (author, email)

Expand Down

0 comments on commit c48dc93

Please sign in to comment.