* Fix bug#16945

This commit is contained in:
zenggang
2021-12-02 00:54:51 +00:00
parent fd0fb325fa
commit bcb6dbbe0a
3 changed files with 43 additions and 1 deletions
+9 -1
View File
@@ -536,10 +536,18 @@ class gitlab
if($version and $version != 'HEAD')
{
/* Get since param. */
if(substr($version, 0, 5) == 'since')
{
$since = true;
$version = substr($version, 5);
}
$committedDate = $this->getCommittedDate($version);
if(!$committedDate) return array('commits' => array(), 'files' => array());
$params['until'] = $committedDate;
if($since) $params['since'] = $committedDate;
else $params['until'] = $committedDate;
}
$list = $this->fetch($api, $params);