1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Remove github-access-token in favor of access-token.

This commit is contained in:
Kevin Quick 2020-09-29 16:20:54 -07:00
parent 66c3959e8c
commit 5e7838512e
No known key found for this signature in database
GPG key ID: E6D7733599CC0A21
2 changed files with 0 additions and 13 deletions

View file

@ -147,17 +147,7 @@ struct GitArchiveInputScheme : InputScheme
auto tokens = settings.accessTokens.get();
auto pat = tokens.find(host);
if (pat == tokens.end())
{
if ("github.com" == host)
{
auto oldcfg = settings.githubAccessToken.get();
if (!oldcfg.empty()) {
warn("using deprecated 'github-access-token' config value; please use 'access-tokens' instead");
return oldcfg;
}
}
return std::nullopt;
}
return pat->second;
}