Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Non-existent kept files cause view crashes #20

Open
sb10 opened this issue Apr 5, 2022 · 1 comment
Open

Non-existent kept files cause view crashes #20

sb10 opened this issue Apr 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sb10
Copy link
Contributor

sb10 commented Apr 5, 2022

Using keep --view on a directory where files have been kept, can fail:

vault keep --view mine
2022-04-05T14:07:35Z+0100	CRITICAL	[Errno 2] No such file or directory: '/.../.git/objects/23/9de85972c940378e6d122e8be7731378fef4ad'
  File "/.../bin/vault", line 8, in <module>
    sys.exit(main())
  File "/.../vault/.venv/lib/python3.8/site-packages/bin/vault/__init__.py", line 209, in main
    view(Branch.Keep, _view_contexts[context], args.absolute)
  File "/.../vault/.venv/lib/python3.8/site-packages/bin/vault/__init__.py", line 72, in view
    elif view_mode == ViewContext.Mine and path.stat().st_uid != os.getuid():
  File ".../conda_envs/R.4/lib/python3.8/pathlib.py", line 1197, in stat
    return self._accessor.stat(self)

Likely due to the kept file having now been deleted.

@sb10 sb10 added the bug Something isn't working label Apr 5, 2022
@sb10 sb10 self-assigned this Apr 5, 2022
@sb10
Copy link
Contributor Author

sb10 commented Apr 20, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant