summaryrefslogtreecommitdiff
path: root/t/t0060-path-utils.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-10-10 17:56:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-10 20:30:31 (GMT)
commit3389e78ec8cd117f981ce3963a901b66db6c8206 (patch)
tree59153ebc7d37be11d8e19ab9a5b875667e8984b0 /t/t0060-path-utils.sh
parent087885049e38c38a437153055ff521567132b183 (diff)
downloadgit-3389e78ec8cd117f981ce3963a901b66db6c8206.zip
git-3389e78ec8cd117f981ce3963a901b66db6c8206.tar.gz
git-3389e78ec8cd117f981ce3963a901b66db6c8206.tar.bz2
submodule: ignore trailing slash in relative url
This is similar to the previous patch, though no user reported a bug and I could not find a regressive behavior. However it is a good thing to be strict on the output and for that we always omit a trailing slash. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0060-path-utils.sh')
-rwxr-xr-xt/t0060-path-utils.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 82b98f8..25b48e5 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -319,6 +319,7 @@ test_submodule_relative_url "../" "foo/bar" "../submodule" "../foo/submodule"
test_submodule_relative_url "../" "foo" "../submodule" "../submodule"
test_submodule_relative_url "(null)" "../foo/bar" "../sub/a/b/c" "../foo/sub/a/b/c"
+test_submodule_relative_url "(null)" "../foo/bar" "../sub/a/b/c/" "../foo/sub/a/b/c"
test_submodule_relative_url "(null)" "../foo/bar/" "../sub/a/b/c" "../foo/sub/a/b/c"
test_submodule_relative_url "(null)" "../foo/bar" "../submodule" "../foo/submodule"
test_submodule_relative_url "(null)" "../foo/submodule" "../submodule" "../foo/submodule"