From: Jens Lehmann Date: Mon, 6 Jun 2011 19:58:04 +0000 (+0200) Subject: submodule add: allow relative repository path even when no url is set X-Git-Tag: v1.7.6.1~15^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4d689320049e1ff3bd31e0468d6f17eeb0b7029c?ds=inline;hp=4d689320049e1ff3bd31e0468d6f17eeb0b7029c submodule add: allow relative repository path even when no url is set Adding a submodule with a relative repository path did only succeed when the superproject's default remote was set. But when that is unset, the superproject is its own authoritative upstream, so lets use its working directory as upstream instead. This allows users to set up a new superpoject where the submodules urls are configured relative to the superproject's upstream while its default remote can be configured later. Signed-off-by: Jens Lehmann Signed-off-by: Junio C Hamano ---