From 8231058f79681b0d6ac46a506150e5d8c29d8b0c Mon Sep 17 00:00:00 2001 From: oxpoe Date: Thu, 5 Nov 2026 09:11:36 +0700 Subject: [PATCH] fix(update): hapus referensi info.* di handler POST (info is not defined) --- routes/adminPortal.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/routes/adminPortal.js b/routes/adminPortal.js index ba9cb58..d7d9943 100644 --- a/routes/adminPortal.js +++ b/routes/adminPortal.js @@ -4663,10 +4663,8 @@ router.post('/update/run', requireAdminSession, restrictToAdmin, (req, res) => { if (!inside.ok) throw new Error('Folder ini belum menjadi git repository.'); const _repo = String(getSetting('update_repo', 'oxpoe/open-isp') || '').trim(); - const _base = String(getSetting('update_base_url', 'https://gitea.oxpoe.xyz') || '').trim().replace(/\/+$/, ''); - info.repo = _repo || 'origin'; - info.baseUrl = _base; - const fetch = _repo + const _base = String(getSetting('update_base_url', 'https://gitea.oxpoe.xyz') || '').trim().replace(/\/+$/, ''); + const fetch = _repo ? runCmd('git', ['fetch', '--prune', _base + '/' + _repo + '.git', branch], repoRoot, 120000) : runCmd('git', ['fetch', '--prune'], repoRoot); pushCmd('git fetch --prune', fetch);