Skip to content

GitPython is unaware of mergetags #128

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dguerri opened this issue Dec 6, 2013 · 1 comment
Closed

GitPython is unaware of mergetags #128

dguerri opened this issue Dec 6, 2013 · 1 comment
Milestone

Comments

@dguerri
Copy link

dguerri commented Dec 6, 2013

Parsing of a mergetag crashes GitPython

Traceback (most recent call last):
  File "/Users/davide/Developer/HP/ve-hpgit/bin/git-hp", line 5, in <module>
    pkg_resources.run_script('hpgit==unknown-version', 'git-hp')
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/pkg_resources.py", line 1455, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/EGG-INFO/scripts/git-hp", line 23, in <module>
    main(argv)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/main.py", line 145, in main
    args.func(args)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/commands/import_upstream.py", line 551, in do_import_upstream
    if len(strategy) == 0:
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/commands/import_upstream.py", line 447, in __len__
    self.data = self._popdata()
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/commands/import_upstream.py", line 471, in _popdata
    return self.searcher.list()
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/lib/searchers.py", line 312, in list
    return super(UpstreamMergeBaseSearcher, self).list()
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/lib/searchers.py", line 93, in list
    commits = list(commit_list)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/hpgit-unknown_version-py2.7.egg/ghp/lib/searchers.py", line 417, in filter
    if any(parent.hexsha == self.stop for parent in commit.parents):
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-macosx-10.9-intel.egg/gitdb/util.py", line 238, in __getattr__
    self._set_cache_(attr)
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/objects/commit.py", line 132, in _set_cache_
    self._deserialize(StringIO(stream.read()))
  File "/Users/davide/Developer/HP/ve-hpgit/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/objects/commit.py", line 443, in _deserialize
    self.author.name = self.author.name.decode(self.encoding) 
LookupError: unknown encoding: object 8e6b9e900d1fb2db987888c23394bab6b350c5fc
@Byron Byron added this to the v0.3.2 milestone Nov 19, 2014
@Byron
Copy link
Member

Byron commented Nov 19, 2014

The fix is now available in v0.3.2 on pypi.

@Byron Byron closed this as completed Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants