Skip to content

AttributeError: '_pygit2.Commit' object has no attribute 'size' #19

Description

@wdkrnls

Hi,

I thought your tool could be useful for probing into the guix codebase.

I am seeing the following traceback vhen I tried to look at the working tree under tag v0.1:

Traceback (most recent call last):
  File "/gnu/store/za6j8m4zdnjccfsric62gpwal3x0djjv-python-fusepy-2.0.4/lib/python3.9/site-packages/fuse.py", line 495, in _wrapper
    return func(*args, **kwargs) or 0
  File "/gnu/store/za6j8m4zdnjccfsric62gpwal3x0djjv-python-fusepy-2.0.4/lib/python3.9/site-packages/fuse.py", line 511, in getattr
    return self.fgetattr(path, buf, None)
  File "/gnu/store/za6j8m4zdnjccfsric62gpwal3x0djjv-python-fusepy-2.0.4/lib/python3.9/site-packages/fuse.py", line 759, in fgetattr
    attrs = self.operations('getattr', self._decode_optional_path(path), fh)
  File "/gnu/store/za6j8m4zdnjccfsric62gpwal3x0djjv-python-fusepy-2.0.4/lib/python3.9/site-packages/fuse.py", line 800, in __call__
    return getattr(self, op)(*args)
  File "/gnu/store/qfhxdx46w7ysgz77qpi2y3mnl73446jp-repofs-v0.2.6/lib/python3.9/site-packages/repofs/repofs.py", line 111, in getattr
    st['st_size'] = handler.file_size()
  File "/gnu/store/qfhxdx46w7ysgz77qpi2y3mnl73446jp-repofs-v0.2.6/lib/python3.9/site-packages/repofs/handlers/commit_hash.py", line 83, in file_size
    return self.oper.file_size(self.get_commit(), self.path_data['commit_path'])
  File "/gnu/store/qfhxdx46w7ysgz77qpi2y3mnl73446jp-repofs-v0.2.6/lib/python3.9/site-packages/repofs/gitoper.py", line 295, in file_size
    size = self._get_entry(commit, path).size

AttributeError: '_pygit2.Commit' object has no attribute 'size'
ls: cannot access 'nix-upstream': Bad address

P.S. - I really like the idea of this tool. Thanks for offering it to the world.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions