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

GitPython breaks with an - unknown encoding - error. #110

Closed
Milestone
@pjps

Description

@pjps

This error occurs while listing files associated with a given commit. On a Fedora-17 machine with GitPython-0.3.2-0.2.RC1.fc17.noarch.

->https://git.kernel.org/linus/ad3e2751e7c546ae678be1f8d86e898506b42cef

$ python
Python 2.7.3 (default, Jul 24 2012, 10:05:38)

from git import repo
rp = repo.Repo('~/linux/")
cm = rp.commit("ad3e2751e7")

cm.stats.files.keys()
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/git/objects/commit.py", line 217, in stats
if not self.parents:
File "/usr/lib64/python2.7/site-packages/gitdb/util.py", line 238, ingetattr
self.set_cache(attr)
File "/usr/lib/python2.7/site-packages/git/objects/commit.py", line 132, inset_cache
self._deserialize(StringIO(stream.read()))
File "/usr/lib/python2.7/site-packages/git/objects/commit.py", line 443, in _deserialize
self.author.name = self.author.name.decode(self.encoding)
LookupError: unknown encoding: -----BEGIN PGP SIGNATURE-----

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp