Merge branch 'lyk_ticket_419' into 'master'
* Resolve ticket #419. See merge request easycorp/zentaopms!7072
This commit is contained in:
@@ -218,8 +218,8 @@ class Gitea
|
||||
$path = ltrim($path, DIRECTORY_SEPARATOR);
|
||||
$count = $count == 0 ? '' : "-n $count";
|
||||
/* compatible with svn. */
|
||||
if($fromRevision == 'HEAD' and $this->branch) $fromRevision = $this->branch;
|
||||
if($toRevision == 'HEAD' and $this->branch) $toRevision = $this->branch;
|
||||
if($fromRevision === 'HEAD' and $this->branch) $fromRevision = $this->branch;
|
||||
if($toRevision === 'HEAD' and $this->branch) $toRevision = $this->branch;
|
||||
if($fromRevision === $toRevision)
|
||||
{
|
||||
$logs = array();
|
||||
|
||||
@@ -1372,7 +1372,7 @@ class repo extends control
|
||||
$content = file($logFile);
|
||||
$lastLine = $content[count($content) - 1];
|
||||
|
||||
if(!strpos($lastLine, 'done'))
|
||||
if(strpos($lastLine, 'done') !== false)
|
||||
{
|
||||
if(strpos($lastLine, 'empty repository') !== false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user