diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-09-24 10:04:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-24 10:04:56 +0200 |
commit | e50a8e6156360e0727bedff32584735b85551c5b (patch) | |
tree | 8787319def21918eeb75e7283087aa6ec791f513 /git/remote.py | |
parent | 48c149c16a9bb06591c2eb0be4cca729b7feac3e (diff) | |
parent | 41fd2c679310e3f7972bd0b60c453d8b622f4aea (diff) | |
download | gitpython-e50a8e6156360e0727bedff32584735b85551c5b.tar.gz |
Merge pull request #517 from yarikoptic/bf-remote-sectionname
BF: allow for other section names which start with a string "remote"
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 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('"') |