1 parent 074842a commit 84fcf8eCopy full SHA for 84fcf8e
git/remote.py
@@ -388,7 +388,7 @@ def _set_cache_(self, attr):
388
if attr == "_config_reader":
389
# NOTE: This is cached as __getattr__ is overridden to return remote config values implicitly, such as
390
# in print(r.pushurl)
391
- self._config_reader = SectionConstraint(self.repo.config_reader(), self._config_section_name())
+ self._config_reader = SectionConstraint(self.repo.config_reader("repository"), self._config_section_name())
392
else:
393
super(Remote, self)._set_cache_(attr)
394
0 commit comments