Merge pull request #5559 from Kloenk/libfetchers-gitlab-headers

libfetchers: set free gitlab headers
This commit is contained in:
Eelco Dolstra 2021-11-16 12:47:49 +01:00 committed by GitHub
commit 6d0aa8d175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,7 +300,7 @@ struct GitLabInputScheme : GitArchiveInputScheme
if ("PAT" == token.substr(0, fldsplit))
return std::make_pair("Private-token", token.substr(fldsplit+1));
warn("Unrecognized GitLab token type %s", token.substr(0, fldsplit));
return std::nullopt;
return std::make_pair(token.substr(0,fldsplit), token.substr(fldsplit+1));
}
Hash getRevFromRef(nix::ref<Store> store, const Input & input) const override