Code

git-submodule - allow a relative path as the subproject url
authorMark Levedahl <mdl123@verizon.net>
Mon, 24 Sep 2007 02:19:42 +0000 (22:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Sep 2007 07:31:12 +0000 (00:31 -0700)
commitf31a522a2d64a5c7d83047e9234e1722ef63985e
tree215a391b0da588203277d7e1960a05ed651107c2
parent41ef95aea7c8d8a337af693b601511e099cc468f
git-submodule - allow a relative path as the subproject url

This allows a subproject's location to be specified and stored as relative
to the parent project's location (e.g., ./foo, or ../foo). This url is
stored in .gitmodules as given. It is resolved into an absolute url by
appending it to the parent project's url when the information is written
to .git/config (i.e., during submodule add for the originator, and
submodule init for a downstream recipient). This allows cloning of the
project to work "as expected" if the project is hosted on a different
server than when the subprojects were added.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
git-submodule.sh