Skip to content

Commit e50a8e6

Browse files
authored
Merge pull request #517 from yarikoptic/bf-remote-sectionname
BF: allow for other section names which start with a string "remote"
2 parents 48c149c + 41fd2c6 commit e50a8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def exists(self):
445445
def iter_items(cls, repo):
446446
""":return: Iterator yielding Remote objects of the given repository"""
447447
for section in repo.config_reader("repository").sections():
448-
if not section.startswith('remote'):
448+
if not section.startswith('remote '):
449449
continue
450450
lbound = section.find('"')
451451
rbound = section.rfind('"')

0 commit comments

Comments
 (0)