aboutsummaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-03-31 17:17:28 -0700
committerJunio C Hamano <gitster@pobox.com>2016-04-01 12:21:34 -0700
commitf8eaa0ba98b3bd9cb9035eba184a2d9806d30b27 (patch)
tree36e4132f8c5547bf7d8f960593278811540c6f3b /t/t7400-submodule-basic.sh
parent47d5d6487902753f9483dc340de12551f90d4bdb (diff)
downloadgit-f8eaa0ba98b3bd9cb9035eba184a2d9806d30b27.tar.gz
git-f8eaa0ba98b3bd9cb9035eba184a2d9806d30b27.tar.xz
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/t7400-submodule-basic.sh')
-rwxr-xr-xt/t7400-submodule-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index fc1180999..ea3fabbed 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 &&
(