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

Commit41fd2c6

Browse files
committed
BF: allow for other section names which start with a string "remote"
by demanding a space after a word remote, and space is explicitly described asa delimiter in man git-config:To begin a subsection put its name in double quotes, separated by space from the section name,otherwise e.g. File "/usr/lib/python2.7/dist-packages/datalad/support/gitrepo.py", line 836, in get_remote_branches for remote in self.repo.remotes: File "/home/yoh/deb/gits/python-git/git/repo/base.py", line 271, in remotes return Remote.list_items(self) File "/home/yoh/deb/gits/python-git/git/util.py", line 745, in list_items out_list.extend(cls.iter_items(repo, *args, **kwargs)) File "/home/yoh/deb/gits/python-git/git/remote.py", line 453, in iter_items raise ValueError("Remote-Section has invalid format: %r" % section)ValueError: Remote-Section has invalid format: u'remotes'
1 parent48c149c commit41fd2c6

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
@@ -445,7 +445,7 @@ def exists(self):
445445
defiter_items(cls,repo):
446446
""":return: Iterator yielding Remote objects of the given repository"""
447447
forsectioninrepo.config_reader("repository").sections():
448-
ifnotsection.startswith('remote'):
448+
ifnotsection.startswith('remote'):
449449
continue
450450
lbound=section.find('"')
451451
rbound=section.rfind('"')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp