Sample Header Ad - 728x90

gvsf (GNOME virtual file system) on usb-ios, when I git clone, I get: fatal: could not set 'core.filemode' to 'false' , due to OS service to rename

0 votes
1 answer
155 views
I usb-connect my ios device on my linux laptop. The linux system mounts a gvfs point to it (/run/user/1000/gvfs/afc:host=xxxxxxxxxx,port=3), I change directory there, I can rsync back and forth, but I wish to clone a git repository who lives in my laptop (/home/user/repo.git).
clone /home/user/repo.git
It will mist-behave:
Cloning into 'repo'...
error: chmod on /run/user/1000/gvfs/afc:host=xxxxxxxxx,port=3/com.lhy.iMarkdown/repo/.git/config.lock failed: Operation not supported
fatal: could not set 'core.filemode' to 'false'
And, sudo git clone /home/user/repo.git will give fatal: could not create work tree dir 'repo': Permission denied. --- This explanation by @torek (https://stackoverflow.com/users/1256452/torek) of git clone answering the same situation but for a samba mount point: https://stackoverflow.com/a/50242563 Will say the process fails on the third and last step when git clone uses invokes the OS service to rename the file. --- In this case, GVfs mounts a removable foreign operating system that has storage (https://askubuntu.com/a/1035122) . This is why sudoing does not work as GVfs makes the mount point usable only by the user who mounted it. --- It would be very comfortable to connect my ios device to my linux laptop and use git in it to repositories in my local device/network. Does anyone know how to make this smooth, please? It would be good to leave the configuration in /etc/fstab so that the whole interaction be as natural as any other storage point that I plug and use. Please it does not make sense to rsync things that are on a git repository back and forth and re-create git. People might have worked around such issues using git on restrictive environments/boxes/devices/storages.
Asked by Bruno Schroeder (25 rep)
Mar 14, 2023, 04:52 PM
Last activity: Mar 21, 2023, 12:08 AM