Nine students selected for the 2010 Google Summer of Code!

Using GIT with Apertium

From Apertium

Jump to: navigation, search

Originally, some of the Apertium developers hosted a GIT mirror of the Apertium repository (which is currently a Subversion repository) at

http://repo.or.cz/r/apertium.git
.

This approach had two disadvantages:

  • The GIT repository became outdated rather quickly (although this was easily fixed by running git svn rebase),
  • The GIT mirror contained everything in the repository. Subversion users do not have to checkout the entire repository, since Subversion (is one of few SCM systems which) allows one to checkout only subdirectories of interest.

Those who wish to use GIT with Apertium are better off using the Apertium repository directly with git-svn.

git-svn does allow one to check out specific directories. If you want to checkout lttoolbox, execute the following command:

git svn clone http://apertium.svn.sourceforge.net/svnroot/apertium \
-T trunk/lttoolbox -b branches/lttoolbox -t tags/lttoolbox

This will checkout everything to a directory named apertium; unfortunately there is no flag to change this behaviour.

N.B. You might have to run the above command more than once! It seems that all the recent re-organization of the repository confuses git-svn somewhat. If the checkout directory on your local machine (that is, the new directory which is named "apertium") is empty, go back to the parent directory (cd ..) and run the above command (git svn clone ...) again.

Personal tools