summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-03-15 13:38:54 +0100
committerPatrick Steinhardt <ps@pks.im>2017-03-17 09:27:56 +0100
commitb0c9bc920fabfd814946d555738ac7ba042154d7 (patch)
tree013a5166f03bf4dd1daf90bc4e76d69213e4ea2e /include/git2
parent097f0105b4f49be3f26273f2323a5b39404180db (diff)
downloadlibgit2-b0c9bc920fabfd814946d555738ac7ba042154d7.tar.gz
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.
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions