You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update Repo.config_reader to support user $HOME/.config/git/config #160
@Byron thanks for the fix & the video. I think you're close. But it's not quite right.
Your code would be looking for either $XDG_CONFIG_HOME/.config/git/config or $HOME/.config/git/config. Per the git documentation, it should be $XDG_CONFIG_HOME/git/config.
Thanks a bunch - you are totally right and I have basically put in the code in your override. Additionally I had a look at the c-git source and it is indeed implemented similarly.
Activity
Byron commentedon Jan 10, 2015
You can see how this was implemented in this youtube video.
jzempel commentedon Jan 11, 2015
@Byron thanks for the fix & the video. I think you're close. But it's not quite right.
Your code would be looking for either
$XDG_CONFIG_HOME/.config/git/configor$HOME/.config/git/config. Per the git documentation, it should be$XDG_CONFIG_HOME/git/config.Please see my Repo class override workaround for details: https://github.com/jzempel/continuity/blob/master/continuity/services/git.py#L38-L58
Re-implemented 'user' config level based on suggestion by @jzempel
Added specific test for roughly checking configuration paths.
Byron commentedon Jan 12, 2015
Thanks a bunch - you are totally right and I have basically put in the code in your override. Additionally I had a look at the c-git source and it is indeed implemented similarly.