* finish task #6939.

This commit is contained in:
wangyidong
2020-03-04 18:21:46 +08:00
parent a6169ffec5
commit 718373cc06
10 changed files with 229 additions and 295 deletions
-21
View File
@@ -312,7 +312,6 @@ class repo extends control
{
$infos = unserialize(file_get_contents($cacheFile));
}
if($refresh) $this->repo->updateLatestCommit($repo);
if($this->cookie->repoRefresh) setcookie('repoRefresh', 0, 0, $this->config->webRoot);
$logType = 'dir';
@@ -808,26 +807,6 @@ class repo extends control
$this->display();
}
/**
* Ajax sync latest commit.
*
* @param int $repoID
* @access public
* @return void
*/
public function ajaxSyncLatestCommit($repoID)
{
set_time_limit(0);
$repo = $this->repo->getRepoByID($repoID);
if((time() - strtotime($repo->lastSync)) / 60 >= $this->config->repo->syncTime)
{
$commits = $this->repo->updateLatestCommit($repo);
if($commits > 0) die('finished');
}
die('norecords');
}
/**
* Ajax get svn tags
*