You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Brokenness fetching from a github repo which has merged a pull request #28
Try fetching from, for example, git://github.com/kergoth/oe-core-template. The reason it blows up is as far as I can tell, the remote end has a ref (not a tag) which is outside of refs/heads/ and refs/tags/ (it's refs/pull/1/head and refs/pull/1/merge). When it fetches these remotes, the fetch_line has no ref type specified at all:
9e30b7d61417455edbbc4617eb9eef9341255bb5 not-for-merge 'refs/pull/1/merge' of git://github.com/kergoth/oe-core-template
And results in, as you'd expect:
File "/home/kergoth/.local/lib/python2.7/site-packages/GitPython-0.3.1-py2.7.egg/git/db/cmd/base.py", line 119, in
for err_line,fetch_line in zip(fetch_info_lines, fetch_head_info))
File "/home/kergoth/.local/lib/python2.7/site-packages/GitPython-0.3.1-py2.7.egg/git/db/cmd/base.py", line 442, in _from_line
raise TypeError("Cannot handle reference type: %r" % ref_type_name)
TypeError: Cannot handle reference type: "'refs/pull/1/head'"
This is a serious problem for me as well... this has been open for a year, with no comment. Is there any update on this? Any hopes of getting it fixed?
I see that there's a lot of activity on GitPython lately, any chance of getting this fixed? This is a real blocker for using GitPython to interact with GitHub forks...
I am trying to get back into the project, and seem to be doing this in baby-steps.
It's a bit like writers block - technically I can do it, but my head really wants to make me believe I should do other things first.
However, I should be fast in merging pull requests in case someone else wants to step up.
FETCH_INFO parsing has been greatly improved in the latest version on pypi, which makes me believe this issue could be fixed.
However, when working on 0.3.5, I shall verify it.
@Byron thanks so much. I can confirm that 0.3.2.1 fixes the probelm when fetching GitHub remotes with pull refs (i.e. fetch = +refs/pull/*/head:refs/pull/origin/*)
Activity
georgengel commentedon Feb 28, 2013
same problem with gitorious merge-requests:
Fetching from the remote
Cannot handle reference type: "'refs/merge-requests/1'"
jantman commentedon Apr 26, 2014
This is a serious problem for me as well... this has been open for a year, with no comment. Is there any update on this? Any hopes of getting it fixed?
add notice on current work stopped pending resolution of gitpython-de…
add notice on current work stopped pending resolution of gitpython-de…
jantman commentedon Jul 16, 2014
I see that there's a lot of activity on GitPython lately, any chance of getting this fixed? This is a real blocker for using GitPython to interact with GitHub forks...
Byron commentedon Jul 17, 2014
I am trying to get back into the project, and seem to be doing this in baby-steps.
It's a bit like writers block - technically I can do it, but my head really wants to make me believe I should do other things first.
However, I should be fast in merging pull requests in case someone else wants to step up.
Byron commentedon Nov 19, 2014
FETCH_INFO parsing has been greatly improved in the latest version on pypi, which makes me believe this issue could be fixed.
However, when working on 0.3.5, I shall verify it.
add notice on current work stopped pending resolution of gitpython-de…
jantman commentedon Jan 2, 2015
@Byron thanks so much. I can confirm that 0.3.2.1 fixes the probelm when fetching GitHub remotes with pull refs (i.e.
fetch = +refs/pull/*/head:refs/pull/origin/*)Byron commentedon Jan 2, 2015
Thanks for verifying this ! I am gladly closing this issue !