diff --git a/fsspec/implementations/git.py b/fsspec/implementations/git.py index 7c34d93e0..fde671b8c 100644 --- a/fsspec/implementations/git.py +++ b/fsspec/implementations/git.py @@ -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, } @@ -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, } @@ -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, }