Try to get email from ~/.gitconfig
Issue #2662
resolved
Simfactory always sets the default email to the username. Try the ~/.gitconfig file, if it exists. PR is here: https://bitbucket.org/simfactory/simfactory2/pull-requests/66/gitemail
Comments (5)
-
-
-
assigned issue to
-
assigned issue to
-
Please apply.
-
Applied as git hash f0aaf8c0 "simdt: obtain the user's email from git if possible" of simfactory2
-
- changed status to resolved
- Log in to comment
I requested changes. Basically, modern git actually defaults to
$XDG_CONFIG_HOME/git/config
for its config file and only falls back to~/.gitconfig
if the needed. Best is to query git about its options usinggit config --global user.email
(taking care of failures etc ifgit
is not in$PATH
or otherwise not executable of course).