Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install from a gitosis

Tags:

git

pip

ssh

gitosis

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)

like image 795
Hernan Avatar asked Mar 22 '12 07:03

Hernan


1 Answers

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

git clone git+ssh://git@server/repo.git
like image 90
VonC Avatar answered Sep 25 '22 14:09

VonC