aboutsummaryrefslogtreecommitdiffstats
path: root/remote.h
diff options
context:
space:
mode:
authorDerrick Stolee <derrickstolee@github.com>2022-05-16 20:11:04 +0000
committerJunio C Hamano <gitster@pobox.com>2022-05-16 15:02:10 -0700
commit834e3520ab6435073ef58922b24d732f96cdf461 (patch)
tree3785be3bd77fd6d883ceff57d789e6f1502ef1d3 /remote.h
parent1d04e719e7bda885991cd4566a5bb6f6565fa106 (diff)
downloadgit-834e3520ab6435073ef58922b24d732f96cdf461.tar.gz
remote: allow relative_url() to return an absolute url
When the 'url' parameter was absolute, the previous implementation would concatenate 'remote_url' with 'url'. Instead, we want to return 'url' in this case. The documentation now discusses what happens when supplying two absolute URLs. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index f18fd27e53..dd4402436f 100644
--- a/remote.h
+++ b/remote.h
@@ -434,6 +434,7 @@ void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *);
* http://a.com/b ../../../c http:/c error out
* http://a.com/b ../../../../c http:c error out
* http://a.com/b ../../../../../c .:c error out
+ * http://a.com/b http://d.org/e http://d.org/e as is
* NEEDSWORK: Given how chop_last_dir() works, this function is broken
* when a local part has a colon in its path component, too.
*/