Publishing various SCM's repositories over SSH

Subversion

Repository Setup

On the server:

svnadmin create svnrepo

Repository Checkout

svn co svn+ssh://username@name.of.your.server/absolute/path/to/svnrepo

Git

Repository Setup

On the server (in $HOME):

mkdir gitrepo
cd gitrepo/
git init

Repository Checkout

git clone username@name.of.your.server:gitrepo

Mercurial

Repository Setup

On the server (in $HOME):

hg init hgrepo

Repository Checkout

hg clone ssh://username@name.of.your.server/hgrepo
2009/10/17 20:26 · Thomas Pani · 0 Comments

gitosis in completely non-root setups

This is an extension to scie.nti.st » Hosting Git repositories, The Easy (and Secure) Way by Garry Dolley describing how to install gitosis in completely non-root environments.

Setting up Python

Append to ''~/.bashrc''

Adapt this for your login shell, if you're not using bash.

export PATH=$PATH:$HOME/opt/bin
export PYTHONPATH=$PYTHONPATH:$HOME/opt/lib/python2.5/site-packages/

Source it:

. ~/.bashrc

Install setuptools

Only do this if setuptools isn't installed already and you can't install it as root!

Find the latest version of setuptools at http://pypi.python.org/pypi/setuptools.

mkdir -p ~/opt/lib/python2.5/site-packages/
wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg
sh setuptools-0.6c9-py2.5.egg --prefix="$HOME/opt"

Install gitosis

git clone git://eagain.net/gitosis.git
cd gitosis
python setup.py install --prefix="$HOME/opt"

Further steps

For further instructions, please refer to scie.nti.st » Hosting Git repositories, The Easy (and Secure) Way.

2009/10/09 11:18 · Thomas Pani · 0 Comments