mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
accept response from gitlab with more than one entry
(cherry picked from commit 0468061dd2
)
This commit is contained in:
parent
560ca6f54f
commit
fd14479103
|
@ -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 a new issue