~xenrox/Infrastructure

srht: Fix git "Internal Error"

git.sr.ht itself works, but when trying to open a repository it crashes with "Internal Error". Important part of the traceback:

AttributeError: '_pygit2.Oid' object has no attribute 'hex'
Status
RESOLVED FIXED
Submitter
~xenrox
Assignee
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
bug service

~xenrox 2 years ago*

Some deprecated functions were recently removed from pygit2.

To fix this, I will temporarily build older versions of pygit2 and libgit2 and write a patch to update all calls to such functions . Close this issue, when the patched package is deployed.

~xenrox 2 years ago

Thorben Günther referenced this ticket in commit ae5d1c7.

~xenrox REPORTED FIXED 2 years ago

sourcehut works with recent libgit2 and pygit2 versions now.