diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-01-03 13:47:46 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-03 13:47:46 -0800 |
commit | bc0fe84b064d2185e147b7c1f98bb6f9b7966b2c (patch) | |
tree | be1e6f4d86c4e6265837953b4cbf1f0f3b23a7e3 /Documentation/git-submodule.txt | |
parent | 54440e154f33678a80ea9f77085730b81a5e9446 (diff) | |
parent | c07aa5b218b9f519c29b5be71fe43cd79365dd37 (diff) | |
download | git-bc0fe84b064d2185e147b7c1f98bb6f9b7966b2c.tar.gz |
Merge branch 'maint-1.7.7' into maint
* maint-1.7.7:
docs: describe behavior of relative submodule URLs
Documentation: read-tree --prefix works with existing subtrees
Add MYMETA.json to perl/.gitignore
Diffstat (limited to 'Documentation/git-submodule.txt')
-rw-r--r-- | Documentation/git-submodule.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 6ec3fef079..b72964947a 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -79,7 +79,12 @@ to exist in the superproject. If <path> is not given, the <repository> is the URL of the new submodule's origin repository. This may be either an absolute URL, or (if it begins with ./ or ../), the location relative to the superproject's origin -repository. If the superproject doesn't have an origin configured +repository (Please note that to specify a repository 'foo.git' +which is located right next to a superproject 'bar.git', you'll +have to use '../foo.git' instead of './foo.git' - as one might expect +when following the rules for relative URLs - because the evaluation +of relative URLs in Git is identical to that of relative directories). +If the superproject doesn't have an origin configured the superproject is its own authoritative upstream and the current working directory is used instead. + |