Project

General

Profile

Actions

Downloading sources with older version of Git

If you have a prior to 1.6.6 version of Git, you can't use git clone --recursive, because the feature was only introduced in 1.6.6. Since git uses recursive submodules (one submodule is inside the other), it would be tedious to make you change directories and run many commands manually.

So, we supply you with some automation that can do it for you. First, add the following lines to ~/.gitconfig:

[alias]
       subinit = !"git submodule init; git submodule update ; git submodule foreach 'git subinit'" 

Note that the name of this alias (at left-hand side of = sign) should match the one invoked at the end of this line!

Then clone without --recursive, and invoke the command you've just added to ~/.gitconfig in the new working directory:

    $ git clone git://forge.ispras.ru/ldv-tools.git
    $ cd ldv-tools
    $ git subinit

Updated by Pavel Shved almost 9 years ago ยท 1 revisions