-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Description
I have a git repository inside gocryptfs. After upgrading from 1.8.0 to 2.0 I noticed that sometimes git incorrectly reports symlinks as modified.
Exact steps to reproduce:
mkdir cipherdir mountpoint
gocryptfs -extpass 'echo pass' -init cipherdir
gocryptfs -extpass 'echo pass' cipherdir mountpoint
cd mountpoint
echo sometext > file
ln -s file link
git init
git add file link
git commit -m commitmsg
rm link
git restore link
git status
# the link is now marked as modified, but this is impossible
git add link
git status
# git figured out that no change happened
This doesn't happen on a regular filesystem or with gocryptfs 1.8.0.
Version: gocryptfs v2.0 without_openssl; go-fuse [vendored]; 2021-06-06 go1.16.5 linux/amd64
git version: 2.31.1
Metadata
Metadata
Assignees
Labels
No labels