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

BF: allow for other section names which start with a string "remote"#517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

yarikoptic
Copy link
Contributor

by demanding a space after a word remote, and space is explicitly described as
a 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'

More proper fix I guess could be making a helper function to split any section definition into(section, subsection) tuple and use it throughout the code, since I am afraid there might be similar treatment for other common subsection names

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'
@ByronByron added this to thev2.0.9 - Bugfixes milestoneSep 24, 2016
@Byron
Copy link
Member

Thank you ! This is my first single-character PR too :) !

@ByronByron merged commite50a8e6 intogitpython-developers:masterSep 24, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Development

Successfully merging this pull request may close these issues.

2 participants
@yarikoptic@Byron

[8]ページ先頭

©2009-2025 Movatter.jp