本文介绍了从gitosis安装pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有工作gitosis回购。如果我这样做的话

$ $ p $ g $ git clone git @ server:repo.git

正确地克隆回购。但是,如果我这样做不起作用:

  git clone ssh:// git @ server:repo.git 

克隆到repo ...
ssh:连接到主机端口22:连接被拒绝
致命:远程端意外挂断

问题在于当我使用 pip II时:

  pip install git + ssh:// git @ server:repo.git 

当然还有产量:

 克隆到repo ... 
ssh:connect到主机端口22:拒绝连接
致命:远程端意外挂起

如果我想做:

  pip install git + git @ server:repo.git 



我得到

  ValueError:('Expected version spec'in','git + git @ server:repo.git','at','+ git @ server:repo.git')

有没有配置pip或gitosis的方法,以便我可以使其工作?



谢谢,

(请避免'使用gitolite',如果可以的话,我会的)

解决方案

我宁愿使用(而不是SCP语法)

  git clone git + ssh://git@server/repo.git 


I have working gitosis repo. If I do

git clone git@server:repo.git

it clones the repo correctly. However, it does not work if I do:

git clone ssh://git@server:repo.git

Cloning into repo...
ssh: connect to host  port 22: Connection refused
fatal: The remote end hung up unexpectedly

The problem is that when I use pip I I do:

pip install git+ssh://git@server:repo.git

and of course yields:

Cloning into repo...
ssh: connect to host  port 22: Connection refused
fatal: The remote end hung up unexpectedly

If I want to do:

pip install git+git@server:repo.git

I get

ValueError: ('Expected version spec in', 'git+git@server:repo.git', 'at', '+git@server:repo.git')

Is there a way to have pip or gitosis configured so I can make it work?

Thanks,

(please avoid 'use gitolite', I would if I could)

解决方案

I would rather use the ssh uri syntax (rather than the SCP syntax)

git clone git+ssh://git@server/repo.git

这篇关于从gitosis安装pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 10:13