aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-16 12:47:49 +0100
committerGitHub <noreply@github.com>2021-11-16 12:47:49 +0100
commit6d0aa8d17544e391872eed76f4c627e4c1f9c05b (patch)
treeb2c7bbecd0a4410e20c4bd2d4cc1cac3c18390a0
parent9fe0343bfd627a6ca0809bbefc80d43a50991347 (diff)
parent79d07d0980e7b19e613ebbfac420fe2aaaed6469 (diff)
Merge pull request #5559 from Kloenk/libfetchers-gitlab-headers
libfetchers: set free gitlab headers
-rw-r--r--src/libfetchers/github.cc2
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