mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 05:00:58 +01:00
Implement parseURLRelative, use in HttpBinaryCacheStore
This allows us to replace some very hacky and not correct string concatentation in `HttpBinaryCacheStore`. It will especially be useful with #13752, when today's hacks started to cause problems in practice, not just theory. Also make `fixGitURL` returned a `ParsedURL`.
This commit is contained in:
parent
231f3af535
commit
e82210b3b2
7 changed files with 278 additions and 30 deletions
|
|
@ -179,7 +179,7 @@ Fetch::Fetch(git_repository * repo, git_oid rev)
|
|||
|
||||
const auto remoteUrl = lfs::getLfsEndpointUrl(repo);
|
||||
|
||||
this->url = nix::parseURL(nix::fixGitURL(remoteUrl)).canonicalise();
|
||||
this->url = nix::fixGitURL(remoteUrl).canonicalise();
|
||||
}
|
||||
|
||||
bool Fetch::shouldFetch(const CanonPath & path) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue