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:
parent
66c3959e8c
commit
5e7838512e
2 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue