We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73b239 commit bfc5263Copy full SHA for bfc5263
git/repo/base.py
@@ -431,7 +431,7 @@ def _get_config_path(self, config_level):
431
elif config_level == "global":
432
return osp.normpath(osp.expanduser("~/.gitconfig"))
433
elif config_level == "repository":
434
- return osp.normpath(osp.join(self._common_dir or self.git_dir, "config"))
+ return osp.normpath(self.git.rev_parse("config", git_path=True))
435
436
raise ValueError("Invalid configuration level: %r" % config_level)
437
0 commit comments