submodule: add more exhaustive up-path testing
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 14 Aug 2018 18:59:06 +0000 (18:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 19:55:17 +0000 (12:55 -0700)
commit2711b1ad5e0483f86c49b142d0808b2b56d1d0c5
tree60aa3ba8185cb41a13bf453a7427d34644be141b
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
submodule: add more exhaustive up-path testing

The tests added in 63e95beb08 ("submodule: port resolve_relative_url
from shell to C", 2016-04-15) didn't do a good job of testing various
up-path invocations where the up-path would bring us beyond even the
URL in question without emitting an error.

These results look nonsensical, but it's worth exhaustively testing
them before fixing any of this code, so we can see which of these
cases were changed.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0060-path-utils.sh