#7021 Handle pgp-signed git commits

forge-mar-7
closed
nobody
42cc (377)
General
None
6 days ago
2014-01-02
Dave Brondsema
No
  File "/var/local/allura/ForgeGit/forgegit/model/git_repo.py", line 232, in refresh_commit_info
    tree_id=ci.tree.hexsha,
  File "/var/local/env-allura/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/util.py", line 238, in __getattr__
    self._set_cache_(attr)
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/objects/commit.py", line 133, in _set_cache_
    self._deserialize(StringIO(stream.read()))
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/objects/commit.py", line 453, in _deserialize
    self.author.name = self.author.name.decode(self.encoding)
LookupError: unknown encoding: -----BEGIN PGP SIGNATURE-----

Related

Chat: 5307a9520594ca127d270306
Chat: 5307a9520594ca127d270309
Tickets: #6790
Tickets: #6952

Discussion

  • It's know GitPython bug. There are merge request for fixing this, but unfortunately it isn't merged into main GitPython repo yet.

    We can use GitPython from this fork, or make our own from stable revision and apply similar changes to it. What do you think?

     
  • Cory Johns
    Cory Johns
    2014-03-04

    • status: code-review --> closed
    • Milestone: forge-backlog --> forge-mar-7
     


Anonymous


Cancel   Add attachments