diff options
author | Stefan Beller <sbeller@google.com> | 2016-03-31 17:17:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-01 12:21:34 -0700 |
commit | f8eaa0ba98b3bd9cb9035eba184a2d9806d30b27 (patch) | |
tree | 36e4132f8c5547bf7d8f960593278811540c6f3b /t | |
parent | 47d5d6487902753f9483dc340de12551f90d4bdb (diff) | |
download | git-f8eaa0ba98b3bd9cb9035eba184a2d9806d30b27.tar.gz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index fc1180999e..ea3fabbed8 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -818,7 +818,7 @@ test_expect_success 'submodule add --name allows to replace a submodule with ano ) ' -test_expect_failure 'recursive relative submodules stay relative' ' +test_expect_success 'recursive relative submodules stay relative' ' test_when_finished "rm -rf super clone2 subsub sub3" && mkdir subsub && ( |