This commit is contained in:
liyuchun
2021-12-17 11:12:05 +08:00
parent e7305d63d4
commit 0f49c232f3
+1
View File
@@ -593,6 +593,7 @@ class gitlab
public function getCommittedDate($sha)
{
if(!scm::checkRevision($sha)) return null;
if(!$sha or $sha == 'HEAD') return date('c');
global $dao;
$time = $dao->select('time')->from(TABLE_REPOHISTORY)->where('revision')->eq($sha)->fetch('time');