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
  • 5
  • gvfs really only works well (or at all) with GNOME tools like Nautilus. Try mounting the filesystem normally instead. – Michael Hampton Nov 23 '18 at 22:13
  • That’s probably the solution that I will use, but the answer to the actual question might be much more interesting for others, so I will keep it open until someone comes along :) – ivarec Nov 23 '18 at 22:15

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
  • 23,798
  • 5
  • 54
  • 81
  • Unfortunately, it doesn't work. I've even tried to run "git init" in another dir and then copying things over, but then I get slightly different errors when trying to push. I guess it's filesystem related, so this question might be interesting to others as well :) – ivarec Nov 23 '18 at 22:07