git-submodule: clone during update, not during init
commit211b7f19c7b046a6cadd36d54c549e4f335f0519
authorLars Hjemli <hjemli@gmail.com>
Wed, 6 Jun 2007 09:13:02 +0000 (6 11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 09:49:08 +0000 (6 02:49 -0700)
treef1cddae9e22ee888ac7dff8fac8a4c3e3ca05b6b
parent33aa6fff5d502d8e2806d31bb0916006993c1f24
git-submodule: clone during update, not during init

This teaches 'git-submodule init' to register submodule paths and urls in
.git/config instead of actually cloning them. The cloning is now handled
as part of 'git-submodule update'.

With this change it is possible to specify preferred/alternate urls for
the submodules in .git/config before the submodules are cloned.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
git-submodule.sh
t/t7400-submodule-basic.sh