mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
refact: Rename url -> hostAndPath
https://github.com/NixOS/nix/pull/12465/files#r1955286197 > Perhaps that is a misnomer.
This commit is contained in:
parent
3b5514e0c6
commit
c07172220c
1 changed files with 4 additions and 4 deletions
|
@ -208,17 +208,17 @@ struct GitArchiveInputScheme : InputScheme
|
||||||
{
|
{
|
||||||
auto owner = getStrAttr(input.attrs, "owner");
|
auto owner = getStrAttr(input.attrs, "owner");
|
||||||
auto repo = getStrAttr(input.attrs, "repo");
|
auto repo = getStrAttr(input.attrs, "repo");
|
||||||
auto urlGen = fmt( "%s/%s/%s", host, owner, repo);
|
auto hostAndPath = fmt( "%s/%s/%s", host, owner, repo);
|
||||||
return makeHeadersWithAuthTokens(settings, host, urlGen);
|
return makeHeadersWithAuthTokens(settings, host, hostAndPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
Headers makeHeadersWithAuthTokens(
|
Headers makeHeadersWithAuthTokens(
|
||||||
const fetchers::Settings & settings,
|
const fetchers::Settings & settings,
|
||||||
const std::string & host,
|
const std::string & host,
|
||||||
const std::string & url) const
|
const std::string & hostAndPath) const
|
||||||
{
|
{
|
||||||
Headers headers;
|
Headers headers;
|
||||||
auto accessToken = getAccessToken(settings, host, url);
|
auto accessToken = getAccessToken(settings, host, hostAndPath);
|
||||||
if (accessToken) {
|
if (accessToken) {
|
||||||
auto hdr = accessHeaderFromToken(*accessToken);
|
auto hdr = accessHeaderFromToken(*accessToken);
|
||||||
if (hdr)
|
if (hdr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue