mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
accept response from gitlab with more than one entry
This commit is contained in:
parent
1c131ec2b7
commit
0468061dd2
@ -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)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user