suport/download: fix git wrapper with submodules on older git versions
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 24 May 2020 10:30:48 +0000 (12:30 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 17 Jun 2020 20:58:22 +0000 (22:58 +0200)
commit8fe9894f655fd79207c41673e1966cc4d4d101d1
tree533c115ce42ebcf166f6ca71656f3730fad750b5
parent775538c2c92f5154c5a87a1fa665ffee6a652986
suport/download: fix git wrapper with submodules on older git versions

Older versions of git store the absolute path of the submodules'
repository as stored in the super-project, e.g.:

    $ cat some-submodule/.git
    gitdir: /path/to/super-project/.git/modules/some-submodule

Obviously, this is not very reproducible.

More recent versions of git, however, store relative paths, which
de-facto makes it reproducible.

Fix older versions by replacing the absolute paths with relative ones.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/download/git