gitmodules.5: url can be a relative path
There is already excellent documentation for this facility in git-submodule.1, but it is not so discoverable. Relative paths in .gitmodules can be useful for serving the same repository over multiple protocols, for example. Thanks to Peter for pointing this out. Cc: Peter Krefting <peter@softwolves.pp.se> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Jul 15, 2010 at 02:41 UTC
47dc5d5fda291bc399da54648ca27e8df4ddfd2c
1 file changed
+3
Documentation/gitmodules.txt
+3
@@ -29,6 +29,9 @@ submodule.<name>.path::
29
30
submodule.<name>.url::
31
Defines an url from where the submodule repository can be cloned.
32
+ This may be either an absolute URL ready to be passed to
33
+ linkgit:git-clone[1] or (if it begins with ./ or ../) a location
34
+ relative to the superproject's origin repository.
35
36
submodule.<name>.update::
37
Defines what to do when the submodule is updated by the superproject.