Skip to content

Commit

Permalink
Avoid use of _pygit2.Blob.hex, which has been removed in pygit2 >= 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Oct 3, 2024
1 parent 360e46d commit 3f2f86f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fsspec/implementations/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def ls(self, path, detail=True, ref=None, **kwargs):
{
"type": "directory",
"name": "/".join([path, obj.name]).lstrip("/"),
"hex": obj.hex,
"hex": str(obj.id),
"mode": f"{obj.filemode:o}",
"size": 0,
}
Expand All @@ -90,7 +90,7 @@ def ls(self, path, detail=True, ref=None, **kwargs):
{
"type": "file",
"name": "/".join([path, obj.name]).lstrip("/"),
"hex": obj.hex,
"hex": str(obj.id),
"mode": f"{obj.filemode:o}",
"size": obj.size,
}
Expand All @@ -101,7 +101,7 @@ def ls(self, path, detail=True, ref=None, **kwargs):
{
"type": "file",
"name": obj.name,
"hex": obj.hex,
"hex": str(obj.id),
"mode": f"{obj.filemode:o}",
"size": obj.size,
}
Expand Down

0 comments on commit 3f2f86f

Please sign in to comment.