From a6a955c83810602b6e00f2d6464c647e1f3ef5fe Mon Sep 17 00:00:00 2001 From: tcecyk Date: Tue, 9 Aug 2022 15:56:15 +0200 Subject: [PATCH] build-community: return all release repo tags by default, gitlab pagination will only return 20 items. As you never know what kind of tags the users will build, older tags will fail. Without a match, the tags-detection breaks, repo init fails, no checkout occurs, user will fail at the latest at the directory check for 'vendor/lineage', a misleading error. --- build-community.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-community.sh b/build-community.sh index ad88f98..648cd8b 100755 --- a/build-community.sh +++ b/build-community.sh @@ -139,7 +139,7 @@ for branch in ${BRANCH_NAME//,/ }; do yes | repo init -u "$REPO" --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" else TAG_PREFIX="" - curl https://gitlab.e.foundation/api/v4/projects/659/repository/tags | grep "\"name\":\"$branch\"" + curl "https://gitlab.e.foundation/api/v4/projects/659/repository/tags?per_page=1000" | grep "\"name\":\"$branch\"" if [ $? == 0 ] then echo "Branch name $branch is a tag on e/os/releases, prefix with refs/tags/ for 'repo init'" -- GitLab