From 6458e764796889c83a5597122c6a28e282faf485 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 17 Jan 2025 11:27:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9git=20hook?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/gitea_webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/gitea_webhook.php b/public/gitea_webhook.php index df220816..b8e2fe11 100644 --- a/public/gitea_webhook.php +++ b/public/gitea_webhook.php @@ -46,7 +46,7 @@ try { throw new \Exception('FAILED - json decode - '. json_last_error()); } - exec('sudo git pull origin dev --rebase 2>&1', $result); + exec('git pull origin dev --rebase 2>&1', $result); var_export($result);exit; } catch (\Throwable $th) {