I have a bare git repo on a samba share server which my team are able to push to but when I try to push I get the error:
remote: fatal: sha1 file './objects/pack/tmp_pack_<changes-with-every-push>' write error: Operation not supported
error: unpack failed: index-pack abnormal exit
To /run/user/1000/gvfs/smb-share:server=<ip-address>,share=<share>/<directory>/<bare.git>
! [remote rejected] <my-branch> -> <my-remote-branch> (unpacker error)
Here's a list of what I've tried:
The "operation not supported" error makes me think that there's some system call problem on the server end that's making git return the error.
I've not managed to find anyone who has had this problem before. Any ideas?
So I finally solved this problem.
I had mounted the server through Nautilus using "Connect to Server" which mounted it as:
/run/user/1000/gvfs/smb-share:server=<ip-address>,share=<share>/<directory>/<bare.git>
I decided to unmount and mount the server to /mnt/mountpoint using information provided in this question.
It works now and I'm able to push my branch on the remote, but only when I'm a sudo user. I haven't got round to fixing this yet but that's a problem for another day when I have time. Hope anyone else who has this problem finds my answer useful.