Skip to content

Commit 47dc5d5

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Acked-by: Johan Herland <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 109988f commit 47dc5d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/gitmodules.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ submodule.<name>.path::
2929

3030
submodule.<name>.url::
3131
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.
3235

3336
submodule.<name>.update::
3437
Defines what to do when the submodule is updated by the superproject.

0 commit comments

Comments
 (0)