Try to get email from ~/.gitconfig

Create issue
Issue #2662 new
Steven R. Brandt created an issue

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 (2)

  1. Roland Haas

    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 using git config --global user.email (taking care of failures etc if git is not in $PATH or otherwise not executable of course).

  2. Log in to comment