- GitLab 6.x
- pyapi-gitlab3 @ v0.5.4
- GNU coreutils
- git 1.6.5 or later (git 1.6.5 introduced transport helpers)
If you plan on mirroring SVN repositories as well then you'll need the following additional options.
If you plan on mirroring BZR repositories then you'll need the following aditional options.
If you plan on mirroring Mercurial repositories then you'll need the following aditional options.
yum install python-setuptools
git clone https://github.com/alexvh/python-gitlab3.git
cd python-gitlab3
git checkout v0.5.4
python setup.py install
If you use package management then it will likely be best for you to install git via package management for your OS. You can find the source to git at the git-core project. For instructions on other platforms see the Getting Started - Installing Git section of the git book. The following is for compiling git 1.8.4 on RHEL 6.4.
yum install perl-ExtUtils-MakeMaker zlib zlib-devel openssh libcurl libcurl-devel expat expat-devel gettext gettext-devel
cd /usr/local/src/
git clone https://code.google.com/p/git-core/
cd git-core/
git tag
git checkout v1.8.4
make configure
./configure --prefix=/usr/local
make
make install
Your git should now be located in /usr/local/bin/git
. You should edit
/etc/profile
and place /usr/local/bin
at the beginning of your $PATH
.
sudo -i -u gitmirror
mkdir ~/bin
wget https://raw.github.com/felipec/git/fc/master/git-remote-bzr.py -O ~/bin/git-remote-bzr
chmod 755 ~/bin/git-remote-bzr
sudo -i -u gitmirror
sudo apt-get install python-rope
mkdir ~/bin
wget https://raw.github.com/felipec/git/fc/master/git-remote-hg.py -O ~/bin/git-remote-hg
chmod 755 ~/bin/git-remote-hg
Next up is Installation and Setup.