diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-09-06 15:27:55 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-09-06 15:27:55 +0200 |
commit | 84fcf8e90fd41f93d77dd00bf1bc2ffc647340f2 (patch) | |
tree | 9a520bb41d120f80ed6acad1453e9357aa28cc26 /git/remote.py | |
parent | 074842accb51b2a0c2c1193018d9f374ac5e948f (diff) | |
download | gitpython-84fcf8e90fd41f93d77dd00bf1bc2ffc647340f2.tar.gz |
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
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index 00d95b3c..9bff5027 100644 --- a/git/remote.py +++ b/git/remote.py @@ -388,7 +388,7 @@ class Remote(LazyMixin, Iterable): if attr == "_config_reader": # NOTE: This is cached as __getattr__ is overridden to return remote config values implicitly, such as # in print(r.pushurl) - 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()) else: super(Remote, self)._set_cache_(attr) |