]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7403-submodule-sync.sh
submodule: fix handling of superproject origin URLs like foo, ./foo and ./foo/bar
authorJon Seymour <jon.seymour@gmail.com>
Wed, 6 Jun 2012 11:57:30 +0000 (21:57 +1000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2012 18:43:55 +0000 (11:43 -0700)
commit758615e2517db8b9fda9218afded06a3e1b42e20
tree37a6269f16ea0852b6a68b4c6f9c57fe119a67d9
parent967b2c66738fe6b168ead0c3106ac47fb9ae22c7
submodule: fix handling of superproject origin URLs like foo, ./foo and ./foo/bar

Currently git submodule init and git submodule sync fail with an error
if the superproject origin URL is of the form foo but succeed if the
superproject origin URL is of the form ./foo or ./foo/bar or foo/bar.

This change makes handling of the foo case behave like the handling
of the ./foo case and also ensures that superfluous leading and
embedded ./'s are removed from the resulting derived URLs.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7400-submodule-basic.sh
t/t7403-submodule-sync.sh