FS#55242 - [sshfs] Git operations fail over sshfs >= 3.2 connection
Attached to Project:
Community Packages
Opened by Alan Moore (lykwydchykyn) - Tuesday, 22 August 2017, 18:57 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 24 September 2017, 14:54 GMT
Opened by Alan Moore (lykwydchykyn) - Tuesday, 22 August 2017, 18:57 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 24 September 2017, 14:54 GMT
|
Details
Description:
When trying to work in a git repository on a remote linux server mounted via sshfs, some git commands fail with "Invalid argument" errors. `git commit` fails with: fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Invalid argument `git push origin master` fails with: unable to append to '.git/logs/refs/remotes/origin/master': Invalid argument (although the remote is actually updated, but the local repo seems unaware of it). Additional info: * package version: 3.2.0-1 * remote server was running Debian Jessie * server was mounted with the command: `sshfs -o idmap=user user@remoteserver:/path/to/content local/mountpoint` * this arrangement has worked for many years. Steps to reproduce: 1. Mount remote server directory containing git repo over sshfs using 3.2.0 2. Attempt a commit or push operation in repo over the sshfs connection |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Sunday, 24 September 2017, 14:54 GMT
Reason for closing: Fixed
Additional comments about closing: sshfs 3.3.0-1 removes the broken writeback cache support
Sunday, 24 September 2017, 14:54 GMT
Reason for closing: Fixed
Additional comments about closing: sshfs 3.3.0-1 removes the broken writeback cache support
I've documented it in our wiki: https://wiki.archlinux.org/index.php/SSHFS#Git_doesn.27t_work_in_a_mounted_directory
https://github.com/libfuse/sshfs/commit/d193b19a8f60e8830f0aa5696d2bf3d4fd8d7930