From b70f496d837e0e330b6394d4b89a96ae1d242715 Mon Sep 17 00:00:00 2001 From: liuyongkai Date: Wed, 1 Mar 2023 09:02:00 +0800 Subject: [PATCH] * Fix bug: Gitea cannot stop sync. --- module/repo/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/control.php b/module/repo/control.php index 8cc8fd6b44..5b125ab8e9 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -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) {