diff options
author | Jon Seymour <jon.seymour@gmail.com> | 2012-06-06 21:57:29 +1000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-06 11:40:59 -0700 |
commit | 967b2c66738fe6b168ead0c3106ac47fb9ae22c7 (patch) | |
tree | 4b67e412a47cd16e0678d260065892239abbc03d /t/t4031-diff-rewrite-binary.sh | |
parent | submodule: document failure to handle relative superproject origin URLs (diff) | |
download | tgif-967b2c66738fe6b168ead0c3106ac47fb9ae22c7.tar.xz |
submodule: fix sync handling of some relative superproject origin URLs
When the origin URL of the superproject is itself relative, git submodule sync
configures the remote.origin.url configuration property of the submodule
with a path that is relative to the work tree of the superproject
rather than the work tree of the submodule.
To fix this an 'up_path' that navigates from the work tree of the submodule
to the work tree of the superproject needs to be prepended to the URL
otherwise calculated.
Correct handling of superproject origin URLs like foo, ./foo and ./foo/bar is
left to a subsequent patch since an additional change is required to handle
these cases.
The documentation of resolve_relative_url() is expanded to give a more thorough
description of the function's objective.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4031-diff-rewrite-binary.sh')
0 files changed, 0 insertions, 0 deletions