submodule--helper, module_clone: always operate on absolute paths
commitf8eaa0ba98b3bd9cb9035eba184a2d9806d30b27
authorStefan Beller <sbeller@google.com>
Fri, 1 Apr 2016 00:17:28 +0000 (31 17:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2016 19:21:34 +0000 (1 12:21 -0700)
tree36e4132f8c5547bf7d8f960593278811540c6f3b
parent47d5d6487902753f9483dc340de12551f90d4bdb
submodule--helper, module_clone: always operate on absolute paths

When giving relative paths to `relative_path` to compute a relative path
from one directory to another, this may fail in `relative_path`.
Make sure both arguments to `relative_path` are always absolute.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/t7400-submodule-basic.sh