Skip to content

Update Repo.config_reader to support user $HOME/.config/git/config #160

Closed

Description

@jzempel

Support for this second user-specific configuration file was added to git in v1.7.12. See commit comments and git documentation for details. Consider adding a "user" config_level to Repo.config_reader between "system" and "global".

Activity

  1. added this to the v0.3.5 - bugfixes milestone on Nov 19, 2014
  2. self-assigned this
    on Jan 10, 2015
  3. Byron commented on Jan 10, 2015

    @Byron
    Member

    You can see how this was implemented in this youtube video.

  4. jzempel commented on Jan 11, 2015

    @jzempel
    Author

    @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.

    Please see my Repo class override workaround for details: https://github.com/jzempel/continuity/blob/master/continuity/services/git.py#L38-L58

  5. added 2 commits that reference this issue on Jan 12, 2015
    acd8246
    dfb0a9c
  6. Byron commented on Jan 12, 2015

    @Byron
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions