Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bfc5263

Browse files
committedJul 16, 2019
use git rev-parse to look for config file
1 parent c73b239 commit bfc5263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎git/repo/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def _get_config_path(self, config_level):
431431
elif config_level == "global":
432432
return osp.normpath(osp.expanduser("~/.gitconfig"))
433433
elif config_level == "repository":
434-
return osp.normpath(osp.join(self._common_dir or self.git_dir, "config"))
434+
return osp.normpath(self.git.rev_parse("config", git_path=True))
435435

436436
raise ValueError("Invalid configuration level: %r" % config_level)
437437

0 commit comments

Comments
 (0)