From 2fef22e3dc1f8393f726732aef67d23664bbf23b Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 3 Aug 2021 11:04:04 +0800 Subject: [PATCH] * Change count to 1 and add a todo. --- lib/scm/gitlab.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/scm/gitlab.class.php b/lib/scm/gitlab.class.php index b4f29cc6d7..7b3c455158 100644 --- a/lib/scm/gitlab.class.php +++ b/lib/scm/gitlab.class.php @@ -518,7 +518,8 @@ class gitlab if(!scm::checkRevision($version)) return array(); $api = "commits"; - if(empty($count)) $count = 100; + /* TODO Put getCommits into cron job. And check best size of $count. */ + if(empty($count)) $count = 1; $params = array(); $params['ref_name'] = $branch;