Git repo failing on submodule in debian

Is your git repository that has at least one submodule fails to clone on your server?

You have a very good chance that the git version on the server wont support submodules. The debian package installer comes with the git 1.4.4, which does not support submodules.

You may have better luck to compile git on your own.

To compile git.. say version 1.5.5

wget http://kernel.org/pub/software/scm/git/git-1.5.5.tar.gz
tar xzf git-1.5.5.tar.gz
cd git-1.5.5
./configure
make
sudo make install

You may also want to make sure you have all dependencies

apt-get update
apt-get build-dep git-core

It may be possible that your make may fail because of missing tcl/tk, if that is the case, then:

apt-get install tcl8.4
apt-get install tk8.4

1 Comment »

  1. A Fresh Cup » Blog Archive » Double Shot #249 said,

    July 16, 2008 @ 4:32 pm

    […] git Repositories, the Easy (and Secure) Way – Good guide to setting up gitosis. I also needed to recompile git, because Debian’s version is too old for gitosis to be […]

RSS feed for comments on this post · TrackBack URI

Leave a Comment