4

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?

ivarec
  • 151

1 Answers1

1

Just an idea (not tested): try git config --global core.filemode false to change is globally and then git init on your samba dir again.

Hope that helps :)

MLu
  • 26,247