git.py: set_env_vars_for_user: Only set env vars when needed
set_env_vars_for_user():
Do not set the GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL} variables if
user.name and user.email are both available from ~/.gitconfig
.
Related MRs:
- !338 (merged)
- !344 (merged)
- !341 (merged) (This MR)
- !340 (merged)
- master
Edited by Ahmon Dancy