I want to push my repository to a Samba share mounted via GNOME’s Nautilus. I believe it uses gio mount under the hood. However, when I try to run git init in a mounted Samba share, I get the following error:
error: chmod on /run/user/1000/gvfs/smb-share:server=myserver,share=myshare,user=myuser/project_dir/.git/config.lock failed: Operation not supported fatal: could not set 'core.filemode' to 'false'
How do I fix this, so that I can push to this directory?