diff options
author | Finn Behrens <me@kloenk.dev> | 2021-11-14 12:23:46 +0100 |
---|---|---|
committer | Finn Behrens <me@kloenk.dev> | 2021-11-14 12:23:46 +0100 |
commit | 79d07d0980e7b19e613ebbfac420fe2aaaed6469 (patch) | |
tree | 899b92973cff444a8ec40e3918e191b30c82248f | |
parent | bceda304982a34c65d5a1dab449cb5bc59f63b83 (diff) |
libfetchers: set free gitlab headers
-rw-r--r-- | src/libfetchers/github.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index ffc44e9e2..1c539b80e 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -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 |