Git click on sshfs with the error "when closing the sha1 file: invalid file descriptor"

We mount the file system via SSH using sshfs and use it as a remote repository for the git repository to work together.

Mac OSX 10.6.6 for RHEL 3 SSHFS server version 2.2 (MacFUSE SSHFS 2.2.0)
MacFUSE library version: FUSE 2.7.3 / MacFUSE 2.0.3

sshfs -o workaround=rename gituser@gitserver.ourdomain.com:/path/to/directory ~/git

This is how we create our repo, work with them locally, and then try to return to the server:

cd ~/git/mypersonaluser
git init --bare --share mynewrepo.git
git clone ~/git/mypersonaluser/mynewrepo.git ~/Desktop/mynewrepo
cd ~/Desktop/mynewrepo
... make a few edits to the repo ...
git push origin master

Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 20.82 KiB | 23 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
fatal: error when closing sha1 file: Bad file descriptor
error: unpack failed: unpack-objects abnormal exit
To /Users/joebob/git/mypersonaluser/mynewrepo.git/
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to '/Users/joebob/git/mypersonaluser/mynewrepo.git/'

Which is strange, it seems that small changes to the repo are deleted successfully, but that large commits with several new files or large volumes of changes do not work.

We are new to sshfs and MacFuse, but intermediate git users.

Any ideas or suggestions?

+3
source share
2

, sshfs. , git RHEL 3, SSH, .

, , SSH:

curl -O http://kernel.org/pub/software/scm/git/git-1.7.4.1.tar.gz
tar xvfz git-1.7.4.1.tar.gz
cd git-1.7.4.1
./configure --prefix=$HOME CFLAGS='-I/usr/kerberos/include'
make SHELL="/bin/bash" install

bin PATH, ~/.bashrc :

export PATH=$PATH:$HOME/bin

.

git add remote myremote ssh://myuser@server.domain.com/home/myuser/path/to/repo.git
git push myremote branchnamehere
0

Git SSH . :

git push gituser@gitserver.ourdomain.com:/path/to/directory master

, gituser@gitserver.ourdomain.com:/path/to/directory ~/git

, , , , MacFuse sshfs .

+4

Source: https://habr.com/ru/post/1788265/


All Articles