[ET Trac] #2662: Try to get email from ~/.gitconfig

Roland Haas trac-noreply at einsteintoolkit.org
Wed Nov 9 18:02:05 CST 2022


#2662: Try to get email from ~/.gitconfig

 Reporter: Steven R. Brandt
   Status: new
Milestone: 
  Version: 
     Type: enhancement
 Priority: trivial
Component: SimFactory

Comment (by 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\).

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2662/try-to-get-email-from-gitconfig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20221110/6f5e190d/attachment.html 


More information about the Trac mailing list