1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

accept response from gitlab with more than one entry

This commit is contained in:
Shogo Takata 2024-06-23 00:52:19 +09:00
parent 1c131ec2b7
commit 0468061dd2
No known key found for this signature in database
GPG key ID: 4BB7EF28F88F6E7A

View file

@ -433,7 +433,7 @@ struct GitLabInputScheme : GitArchiveInputScheme
store->toRealPath(
downloadFile(store, url, "source", headers).storePath)));
if (json.is_array() && json.size() == 1 && json[0]["id"] != nullptr) {
if (json.is_array() && json.size() >= 1 && json[0]["id"] != nullptr) {
return RefInfo {
.rev = Hash::parseAny(std::string(json[0]["id"]), HashAlgorithm::SHA1)
};