origin=repo.remotes.originfetch_info=origin.fetch('master') # The most recent origin/master is now on FETCH_HEADfoo=fetch_info.FETCH_HEAD.commit>>ValueError: Failedtoparsereferenceinformationfrom'FETCH_HEAD'
.git/FETCH_HEAD
60b64ef992065e2600bfef6187a97f92398a9144 branch 'master' of git-server:/path/to/repo
Activity
chroto commented on Dec 16, 2013
gitpython-developers#130 Split on all whitespace, not just space char
klimkin commented on Jan 7, 2014
This also helps to fix this problem:
>>> r.commit('FETCH_HEAD') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/nfs/pdx/home/adklimki/.local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/base.py", line 378, in commit return self.rev_parse(str(rev)+"^0") File "/nfs/pdx/home/adklimki/.local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/fun.py", line 151, in rev_parse obj = name_to_object(repo, rev[:start]) File "/nfs/pdx/home/adklimki/.local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/fun.py", line 86, in name_to_object raise BadObject(name) gitdb.exc.BadObject: BadObject: 46455443485f48454144Byron commented on Nov 19, 2014
Thanks - I have implemented the fix you referred to, and verified it doesn't break anything.
Merge pull request gitpython-developers#130 from sminux/sminux-sast-c…