submodule: drop the top-level requirement
authorJohn Keeping <john@keeping.me.uk>
Sun, 16 Jun 2013 14:18:18 +0000 (15:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jun 2013 20:30:01 +0000 (13:30 -0700)
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 <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found