Skip to content

Latest commit

 

History

History
99 lines (76 loc) · 3.16 KB

prerequisites.md

File metadata and controls

99 lines (76 loc) · 3.16 KB

Prerequisites

Required software

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.

Required software install snippets

python-gitlab

dnf/yum
yum install python-pip
pip install python-gitlab
apt
apt install -y python3-gitlab

Installing git

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.

git-svn

Notice in config.sh.SAMPLE the option git_svn_additional_options="-s". This behavior assumes that your SVN project is laid out with a standard directory structure: trunk/, branches/, and tags/. If your project does not conform to this layout then you should modify that option by removing -s. That means setting git_svn_additional_options="". See the git-svn(1) man page to learn more about what -s does. The additional options will pass in parameters to the git svn command. If a project to be mirrored has a custom layout then this option can be modified to account for that.

git-bzr-helper

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

git-hg-helper

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.