HomeSoftware Heritage

dumb: Fix regression when joining URLs

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

dumb: Fix regression when joining URLs

urljoin does not produce the same output if the base URL does not
have a trailing slash.

from urllib.parse import urljoin
urljoin("https://git.example.org/repo", "info/refs")

'https://git.example.org/info/refs'

urljoin("https://git.example.org/repo/", "info/refs")

'https://git.example.org/repo/info/refs'

So ensure the base URL ends with a slash to avoid generating invalid
URLs and make loading failed.

Details

Provenance
anlambertAuthored on Jan 11 2022, 3:48 PM
anlambertPushed on Jan 11 2022, 4:35 PM
Differential Revision
D6917: dumb: Fix regression when joining URLs
Build Status
Buildable 25938
Build 40536: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.