libgit2/tests/resources/submodules
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
..
.gitted tests: add submodule worktree test data 2017-02-13 10:13:02 +01:00
testrepo submodule: resolve URLs relative to main worktree 2017-03-17 09:27:56 +01:00
added Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
gitmodules Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
ignored Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
modified Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
unmodified Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
untracked Rename tests-clar to tests 2013-11-14 14:05:52 -08:00