summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-09-24 10:04:56 +0200
committerGitHub <noreply@github.com>2016-09-24 10:04:56 +0200
commite50a8e6156360e0727bedff32584735b85551c5b (patch)
tree8787319def21918eeb75e7283087aa6ec791f513
parent48c149c16a9bb06591c2eb0be4cca729b7feac3e (diff)
parent41fd2c679310e3f7972bd0b60c453d8b622f4aea (diff)
downloadgitpython-e50a8e6156360e0727bedff32584735b85551c5b.tar.gz
Merge pull request #517 from yarikoptic/bf-remote-sectionname
BF: allow for other section names which start with a string "remote"
-rw-r--r--git/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index 12129460..4a8a5ee9 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -445,7 +445,7 @@ class Remote(LazyMixin, Iterable):
def iter_items(cls, repo):
""":return: Iterator yielding Remote objects of the given repository"""
for section in repo.config_reader("repository").sections():
- if not section.startswith('remote'):
+ if not section.startswith('remote '):
continue
lbound = section.find('"')
rbound = section.rfind('"')