From: John Keeping Date: Sun, 16 Jun 2013 14:18:18 +0000 (+0100) Subject: submodule: drop the top-level requirement X-Git-Tag: v1.8.4-rc0~107^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/091a6eb0feed820a43663ca63dc2bc0bb247bbae?ds=inline;hp=091a6eb0feed820a43663ca63dc2bc0bb247bbae submodule: drop the top-level requirement Use the new rev-parse --prefix option to process all paths given to the submodule command, dropping the requirement that it be run from the top-level of the repository. Since the interpretation of a relative submodule URL depends on whether or not "remote.origin.url" is configured, explicitly block relative URLs in "git submodule add" when not at the top level of the working tree. Signed-off-by: John Keeping Signed-off-by: Junio C Hamano ---