Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Chmod on folder throws error #140

Closed
calind opened this issue Oct 15, 2014 · 0 comments
Closed

Chmod on folder throws error #140

calind opened this issue Oct 15, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@calind
Copy link
Contributor

calind commented Oct 15, 2014

Chmod on folder throws:

Call chmod CurrentView with (u'/folder', 16832)
Traceback (most recent call last):
  File "/Users/calin/.virtualenvs/gitfs/lib/python2.7/site-packages/fuse.py", line 414, in _wrapper
    return func(*args, **kwargs) or 0
  File "/Users/calin/.virtualenvs/gitfs/lib/python2.7/site-packages/fuse.py", line 463, in chmod
    return self.operations('chmod', path.decode(self.encoding), mode)
  File "/Users/calin/work/gitfs/gitfs/router.py", line 132, in __call__
    return getattr(view, operation)(*args)
  File "/Users/calin/work/gitfs/gitfs/utils/decorators/write_operation.py", line 40, in decorated
    result = f(*args, **kwargs)
  File "/Users/calin/work/gitfs/gitfs/utils/decorators/not_in.py", line 36, in decorated
    result = f(their_self, *args, **kwargs)
  File "/Users/calin/work/gitfs/gitfs/views/current.py", line 135, in chmod
    self._stage(add=path, message=message)
  File "/Users/calin/work/gitfs/gitfs/views/current.py", line 217, in _stage
    self.repo.index.add(self._sanitize(add))
  File "/Users/calin/.virtualenvs/gitfs/lib/python2.7/site-packages/pygit2/index.py", line 205, in add
    check_error(err, True)
  File "/Users/calin/.virtualenvs/gitfs/lib/python2.7/site-packages/pygit2/errors.py", line 56, in check_error
    raise GitError(message)
GitError: Failed to read file into stream: Is a directory
@calind calind added the bug label Oct 15, 2014
@calind calind added this to the 0.1.2 milestone Oct 15, 2014
@zalmanu zalmanu self-assigned this Oct 17, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants