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 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy