Skip to content

Commit c071722

Browse files
committed
refact: Rename url -> hostAndPath
https://github.com/NixOS/nix/pull/12465/files#r1955286197 > Perhaps that is a misnomer.
1 parent 3b5514e commit c071722

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libfetchers/github.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,17 @@ struct GitArchiveInputScheme : InputScheme
208208
{
209209
auto owner = getStrAttr(input.attrs, "owner");
210210
auto repo = getStrAttr(input.attrs, "repo");
211-
auto urlGen = fmt( "%s/%s/%s", host, owner, repo);
212-
return makeHeadersWithAuthTokens(settings, host, urlGen);
211+
auto hostAndPath = fmt( "%s/%s/%s", host, owner, repo);
212+
return makeHeadersWithAuthTokens(settings, host, hostAndPath);
213213
}
214214

215215
Headers makeHeadersWithAuthTokens(
216216
const fetchers::Settings & settings,
217217
const std::string & host,
218-
const std::string & url) const
218+
const std::string & hostAndPath) const
219219
{
220220
Headers headers;
221-
auto accessToken = getAccessToken(settings, host, url);
221+
auto accessToken = getAccessToken(settings, host, hostAndPath);
222222
if (accessToken) {
223223
auto hdr = accessHeaderFromToken(*accessToken);
224224
if (hdr)

0 commit comments

Comments
 (0)