macos-fuse-t / fuse-t

Other
929 stars 7 forks source link

Unable to use git without errors inside a FUSE-T mounted filesystem #60

Closed beesperester closed 4 months ago

beesperester commented 4 months ago

Hi, I discovered some issues today when switching from MacFUSE to FUSE-T as filesystem driver in Cryptomator. It seems FUSE-T is having issues with git repositories. Whenever I try to do a commit, git is reporting that the object is missing.

I had a few successful attempts recreating the object via git hash-object -w [path/to/object] command, but that does not work all the time.

It already fails with the basic commit in the example below.

Not sure if that is a FUSE-T issue or a Cryptomator issue.

Thanks for looking into it.

Cheers, Bernhard

I am running macOS Version 14.5 (23F79) with FUSE-T Version 1.0.38.

$ mkdir test
$ cd test
$ git init
> Initialized empty Git repository in [...]/test/.git/
$ echo ".DS_Store" >> .gitignore
$ git add .
$ git commit -m "initial commit"
> error: invalid object 100644 e43b0f988953ae3a84b00331d0ccf5f7d51cb3cf for '.gitignore'
> error: invalid object 100644 e43b0f988953ae3a84b00331d0ccf5f7d51cb3cf for '.gitignore'
> error: Error building trees
beesperester commented 4 months ago

This is probably more an issue of Cryptomator than FUSE-T.