8000 fix(remote): assure only repository configuration · isprime/GitPython@84fcf8e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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 gitpython-developers#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

Lines changed: 1 addition & 1 deletion
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)
0