diff options
author | Linus Heckemann <git@sphalerite.org> | 2024-05-31 21:12:04 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2024-05-31 21:12:04 +0200 |
commit | 82de36f77a2766258cf622b65c3dc9d016ddb969 (patch) | |
tree | 3c59a5e73563ed70ba9693a55662ded3cf446b85 /src/libfetchers | |
parent | ff08d954206a557ec7afe7301cdb4bb72114875f (diff) |
libfetchers: allow fetching gitlab refs with >1 commit
Change-Id: I945c4c5512def9eff728bb67fe3c03ae17f99d6d
Diffstat (limited to 'src/libfetchers')
-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 3129e0d73..60fefd1f3 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -322,7 +322,7 @@ struct GitLabInputScheme : GitArchiveInputScheme readFile( store->toRealPath( downloadFile(store, url, "source", false, headers).storePath))); - if (json.is_array() && json.size() == 1 && json[0]["id"] != nullptr) { + if (json.is_array() && json.size() >= 1 && json[0]["id"] != nullptr) { auto rev = Hash::parseAny(std::string(json[0]["id"]), htSHA1); debug("HEAD revision for '%s' is %s", url, rev.gitRev()); return rev; |