Git推送“写入错误:不支持操作"; [英] Git push "write error: Operation not supported"

查看:114
本文介绍了Git推送“写入错误:不支持操作";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的团队能够推送到的samba共享服务器上有一个裸露的git repo,但是当我尝试推送时,我得到了错误:

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:

  • 我将裸仓库从服务器复制到了我的机器上,并且能够推送到该仓库(然后,bare.git存储库就可以了)
  • 我在服务器上制作了裸仓库的副本(并添加为第二个远程服务器),但是当我将其推送到服务器时,会出现相同的错误消息(这与samba共享有关吗?)
  • 我将裸仓库的另一个副本放到usb上,成功地推送到了USB上,并且我的团队中的一个成员能够将我的分支机构拉到他的本地仓库,并从那里通过samba成功地推送到了服务器(所以也许不是. t samba)
  • 然后我从稳定创建了一个新分支,并能够从那里推送单个文本文件(因此git将只提交一个文本文件,但不是全部来自我的工作分支,但这不能作为我的提交.同事能够从他的机器上推我的分支)
  • 我已经使用修剪和攻击性标志运行gc,并且git fsck不会返回任何问题
  • 我已经重新安装了smbclient和git,都没有成功.

不支持操作"错误使我认为服务器端存在一些导致git返回错误的系统调用问题.

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.

我已经通过Nautilus使用连接到服务器"将服务器安装为:

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>

我决定使用它现在可以工作,并且我可以将我的分支推送到远程上,但仅当我是sudo用户时才可以.我还没有解决这个问题,但是如果有时间的话,那又是一个问题.希望其他任何有此问题的人都能找到我的答案.

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.

这篇关于Git推送“写入错误:不支持操作";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆