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
There is no way to get global configuration parameters without Repo object. config_reader()must be repository independent. So does config_writer() and accompanying methods.
Simplest (and ugly) hack is to allow path=None in Repo().
@Byron Are you open to PRs? It seems like this is mostly a matter of where to put the relevant code. If I figure out something logical, can I submit a PR and we discuss from there?
Activity
Byron commentedon Jul 15, 2018
Thanks for letting us know! Out of the back of my head, no simpler solution comes to mind.
andy-shev commentedon Jul 5, 2019
Better workaround if anybody is interested.
Usage:
benthayer commentedon Oct 11, 2019
@andy-shev Thank you! Solution worked for me too.
@Byron Are you open to PRs? It seems like this is mostly a matter of where to put the relevant code. If I figure out something logical, can I submit a PR and we discuss from there?
Byron commentedon Oct 15, 2019
@bthayer2365 Absolutely, GitPython runs on PRs! Thanks for your participation :).