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

Fix for #142. Simply ignores lines that begin with ' ='#163

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
Byron merged 1 commit intogitpython-developers:0.3fromnefaspartim:bugfix-142
May 16, 2014

Conversation

nefaspartim
Copy link

This is kind of a hacky fix for#142. It works in all test cases using git 1.8.3.1 and 1.9.2, so Iassume it won't break stuff. Please examine and subsequently make fun of me.

@Byron
Copy link
Member

Well, let's try that - I am suffering from that issues as well by the way and grow more annoyed by it every day.
Thanks for your contribution !

Byron added a commit that referenced this pull requestMay 16, 2014
Fix for#142. Simply ignores lines that begin with ' ='
@ByronByron merged commitf9b915b intogitpython-developers:0.3May 16, 2014
@rkyser
Copy link

This breaksfetching individual remotes. I'm usinggit version 1.9.2.msysgit.0.

>>> from git import Repo>>> r = Repo('.')>>> r.remotes['origin'].fetch()Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "C:\Python27\lib\site-packages\gitpython-0.3.2.rc1-py2.7.egg\git\remote.py", line 594, in fetch    return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())  File "C:\Python27\lib\site-packages\gitpython-0.3.2.rc1-py2.7.egg\git\remote.py", line 540, in _get_fetch_info_from_stderr    assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, fetch_info_lines)AssertionError: len(["26a25a032bc442de391425e89be07124ea2ba845\t\tbranch 'master' of fake.url.com:gint/testrepo1\n", "59d3007c47269d7bb2b3c464a6ed290ec9a95a6f\tnot-for-merge\tbranch 'RemoteOnlyBranch_DontCheckout' of fake.url.com:gint/testrepo1\n", "43ce9f5dd15f817eb806331648ed70e82e3b8b06\tnot-for-merge\tbranch 'branch1' of fake.url.com:gint/testrepo1\n"]) != len([])

If I removeor line.startswith(' ='):

>>> from git import Repo>>> r = Repo('.')>>> r.remotes['origin'].fetch()[<git.remote.FetchInfo object at 0x02550DA0>, <git.remote.FetchInfo object at 0x02550F30>, <git.remote.FetchInfo object at 0x02550E90>]

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@nefaspartim@Byron@rkyser@dfedelz

[8]ページ先頭

©2009-2025 Movatter.jp