git ls-remote returns 128 on any repo

天大地大妈咪最大 提交于 2019-11-28 03:46:20

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6564309/git-ls-remote-returns-128-on-any-repo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!