If file doesn't have write permissions, it breaks repository
bfirsh opened this issue · 3 comments
bfirsh commented
If a file with permissions -r--------
is saved to the repository, then you can no longer check out because Replicate doesn't have permission to write to the file.
Pretty minor because this is actually sort of intended behavior, but maybe we shouldn't let you check in files with these permissions, because it is guaranteed to break your repository? I wonder how Git handles this.
peanutduck commented
Can I work on this?
bfirsh commented
@peanutduck Yes! No need to ask permission. :)
peanutduck commented
@bfirsh How can I simulate this issue? I tried creating a file with 400 permission but I'm able checkout to my local branch using checkout and also to a remote branch with the switch command