Skip to content

Commit 84fcf8e

Browse files
committed
fix(remote): assure only repository configuration
Previously it was possible for it to pick up non-repository branch configuration, even though it was unlikely. Closes #350
1 parent 074842a commit 84fcf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def _set_cache_(self, attr):
388388
if attr == "_config_reader":
389389
# NOTE: This is cached as __getattr__ is overridden to return remote config values implicitly, such as
390390
# in print(r.pushurl)
391-
self._config_reader = SectionConstraint(self.repo.config_reader(), self._config_section_name())
391+
self._config_reader = SectionConstraint(self.repo.config_reader("repository"), self._config_section_name())
392392
else:
393393
super(Remote, self)._set_cache_(attr)
394394

0 commit comments

Comments
 (0)