libgit2/tests/resources/submodules/testrepo/.gitted
Patrick Steinhardt b0c9bc920f submodule: resolve URLs relative to main worktree
It is possible to specify submodule URLs relative to the repository
location. E.g. having a submodule with URL "../submodule" will look for
the submodule at "repo/../submodule".

With the introduction of worktrees, though, we cannot simply resolve the
URL relative to the repository location itself. If the repository for
which a URL is to be resolved is a working tree, we have to resolve the
URL relative to the parent's repository path. Otherwise, the URL would
change depending on where the working tree is located.

Fix this by special-casing when we have a working tree while getting the
URL base.
2017-03-17 09:27:56 +01:00
..
info Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
logs tests: add submodule worktree test data 2017-02-13 10:13:02 +01:00
objects Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
refs tests: add submodule worktree test data 2017-02-13 10:13:02 +01:00
worktrees/submodules-worktree-child tests: add submodule worktree test data 2017-02-13 10:13:02 +01:00
config submodule: resolve URLs relative to main worktree 2017-03-17 09:27:56 +01:00
description Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
HEAD Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
index Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed-refs Rename tests-clar to tests 2013-11-14 14:05:52 -08:00