Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Created May 5, 2014 19:49
Show Gist options
  • Select an option

  • Save marknorgren/86852a6b37c6bc98683b to your computer and use it in GitHub Desktop.

Select an option

Save marknorgren/86852a6b37c6bc98683b to your computer and use it in GitHub Desktop.
gitpython failure
>>> repo.remotes.origin.fetch()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/git/remote.py", line 550, in fetch
return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())
File "/usr/local/lib/python2.7/site-packages/git/remote.py", line 497, in _get_fetch_info_from_stderr
assert len(fetch_info_lines) == len(fetch_head_info)
AssertionError
@marknorgren
Copy link
Author

$ python --version
Python 2.7.6
$ git --version
git version 1.9.2

@marknorgren
Copy link
Author

Traceback (most recent call last):
File "batchgit.py", line 38, in
br = repo.active_branch.str()
File "/usr/local/lib/python2.7/site-packages/git/repo/base.py", line 546, in active_branch
return self.head.reference
File "/usr/local/lib/python2.7/site-packages/git/refs/symbolic.py", line 241, in _get_reference
raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha))
TypeError: HEAD is a detached symbolic reference as it points to '59bd66256e05e86e6f0c7e00deb081cb4a6619b3'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment