Add submodules.sh and use it during builds

This adds a shell script which can be be used to initialize, list and
update submodules in a git repository. It reads the file .gitmodules
to find a mapping between submodule path and repository url for the
initial clone of all submodules.

The script is used during cgit builds to enable automatic download and
checkout of the git git repository.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Этот коммит содержится в:
Lars Hjemli
2007-05-10 11:25:12 +02:00
родитель e743443811
Коммит cc1dbd1b5d
3 изменённых файлов: 224 добавлений и 15 удалений

5
.gitmodules поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,5 @@
# This file maps a submodule path to an url from where the submodule
# can be obtained. The script "submodules.sh" finds the url in this file
# when invoked with -i to clone the submodules.
git git://git.kernel.org/pub/scm/git/git.git