Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit84fcf8e

Browse files
committed
fix(remote): assure only repository configuration
Previously it was possible for it to pick up non-repositorybranch configuration, even though it was unlikely.Closesgitpython-developers#350
1 parent074842a commit84fcf8e

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
ifattr=="_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)

[8]ページ先頭

©2009-2025 Movatter.jp