* finish task #6939.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user