From: Marc Branchaud Date: Mon, 06 Jun 2011 20:49:12 GMT Subject: [PATCH 1/2] More precisely described how "git submodule add" handles relative submodule URLs. Message-ID: <1307393353-32389-2-git-send-email-marcnarc@xiplink.com> In-Reply-To: <1307393353-32389-1-git-send-email-marcnarc@xiplink.com> Signed-off-by: Marc Branchaud --- Documentation/git-submodule.txt | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 408998e..83c59cc 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -77,8 +77,11 @@ to exist in the superproject. If is not given, the + 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 +or ../) a location relative to one of the superproject's remote +repositories: If the superproject's currently checked-out branch tracks +a remote branch then that remote's URL is used, otherwise the "origin" +remote's URL is used. +If the superproject doesn't have an "origin" remote configured the superproject is its own authoritative upstream and the current working directory is used instead. + -- 1.7.6.rc0.17.g3eac3