I am trying to have (git) versioning on a fileshare , but when running git init
or git clone
I get:
error: chmod on /[my folder]/.git/config.lock failed: Operation not permitted
Is there a workaround, or we have to use blobs versioning?
This seems to be the same problem already solved in Prevent git from failing on filesystems without chmod permissions in Linux.
Basically git
tries to do a chmod
after it created the files and on filesystems where that is not allowed git
fails.
The workaround is to create the repository on a different filesystem and move the files over after they have been created.
Sadly even the latest version of git
seems to miss a command line option to disable that call to chmod
.