git ls-remote在任何回购上返回128 [英] git ls-remote returns 128 on any repo
问题描述
当使用git时,任何其他命令都可以完美地工作(按下/按钮), 128
拉/克隆/等)。我的回购利用gitolite进行管理。第一次尝试部署rails应用程序时出现此错误。当我手动调用这个命令时,我得到如下的标准错误:
fatal:远端意外挂起
如果这是权限/公钥问题,我将无法从/回推/推/拉回购。为什么单个 ls-remote
命令失败?解决方案
出。问题出在回购的地址。我用 git:// host / repo
地址代替 git @ host:repo
。后者解决了这个问题。
When using git, git ls-remote
returns status code 128
while any other commands work flawlessly (push/pull/clone/etc). My repos are being managed with gitolite. I'm getting this error when trying to deploy rails app for the first time. When invoking said command by hand I get standard error like this:
fatal: The remote end hung up unexpectedly
If this was permissions/public key issue, I wouldn't be able to push/pull to/from the repo. Why does single ls-remote
command fail?
I figured it out. The problem was in repo's address. I have used git://host/repo
address instead of git@host:repo
. The latter fixed the issue.
这篇关于git ls-remote在任何回购上返回128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!