]> git.99rst.org Git - git.git/commit
remote: allow relative_url() to return an absolute url
authorDerrick Stolee <redacted>
Mon, 16 May 2022 20:11:04 +0000 (20:11 +0000)
committerJunio C Hamano <redacted>
Mon, 16 May 2022 22:02:10 +0000 (15:02 -0700)
commit834e3520ab6435073ef58922b24d732f96cdf461
tree3785be3bd77fd6d883ceff57d789e6f1502ef1d3
parent1d04e719e7bda885991cd4566a5bb6f6565fa106
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 <redacted>
Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
remote.c
remote.h
git clone https://git.99rst.org/PROJECT