Merge branch 'lyk_fixbug' into 'master'

* Fix bug: Gitea cannot stop sync.

See merge request easycorp/zentaopms!7100
This commit is contained in:
孙广明
2023-03-01 04:23:54 +00:00
+1 -1
View File
@@ -1372,7 +1372,7 @@ class repo extends control
$content = file($logFile);
$lastLine = $content[count($content) - 1];
if(strpos($lastLine, 'done') !== false)
if(strpos($lastLine, 'done') === false)
{
if(strpos($lastLine, 'empty repository') !== false)
{