submodule sync: Update "submodule.<name>.url" for empty directories
commit33f072f8910081b12780197a2a5423227e437af8
authorAndreas Köhler <andi5.py@gmx.net>
Fri, 8 Oct 2010 01:07:48 +0000 (8 03:07 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Oct 2010 01:31:45 +0000 (13 18:31 -0700)
treeabfa4e5e3842c55dde210c298c613ae92dcf90cf
parent7c6eafa35af805578990e76b691ff7f1a25a3c57
submodule sync: Update "submodule.<name>.url" for empty directories

If a submodule directory has not been filled by "git submodule update"
yet, then "git submodule sync" must still update the super-project's
configuration for submodule.<name>.url.

This situation occurs when switching between branches with a module from
different urls and other branches without the submodule.

Signed-off-by: Andreas Köhler <andi5.py@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7403-submodule-sync.sh