keepsake icon indicating copy to clipboard operation
keepsake copied to clipboard

If file doesn't have write permissions, it breaks repository

Open bfirsh opened this issue 4 years ago • 3 comments

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.

bfirsh avatar Jan 07 '21 21:01 bfirsh

Can I work on this?

peanutduck avatar Mar 04 '21 17:03 peanutduck

@peanutduck Yes! No need to ask permission. :)

bfirsh avatar Mar 04 '21 17:03 bfirsh

@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

peanutduck avatar Mar 04 '21 18:03 peanutduck