From 11ccc31933320c3025a3c8e7fefd36c7b61df88c Mon Sep 17 00:00:00 2001 From: oxpoe Date: Wed, 14 Oct 2026 21:11:52 +0700 Subject: [PATCH] fix(update): fetch rilis dari Gitea, bukan github.com --- routes/adminPortal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/adminPortal.js b/routes/adminPortal.js index 4f93776..e9b42cf 100644 --- a/routes/adminPortal.js +++ b/routes/adminPortal.js @@ -396,7 +396,7 @@ function getUpdateInfo(repoRoot) { const _repo = String(getSetting('update_repo', 'oxpoe/open-isp') || '').trim(); info.repo = _repo || 'origin'; const fetch = _repo - ? runCmd('git', ['fetch', '--prune', 'https://github.com/' + _repo + '.git', branch], repoRoot) + ? runCmd('git', ['fetch', '--prune', 'https://gitea.oxpoe.qzz.io/' + _repo + '.git', branch], repoRoot) : runCmd('git', ['fetch', '--prune'], repoRoot); if (!fetch.ok) { info.error = 'Gagal git fetch: ' + (fetch.stderr || fetch.stdout || '').trim(); @@ -4634,7 +4634,7 @@ router.post('/update/run', requireAdminSession, restrictToAdmin, (req, res) => { const _repo = String(getSetting('update_repo', 'oxpoe/open-isp') || '').trim(); info.repo = _repo || 'origin'; const fetch = _repo - ? runCmd('git', ['fetch', '--prune', 'https://github.com/' + _repo + '.git', branch], repoRoot) + ? runCmd('git', ['fetch', '--prune', 'https://gitea.oxpoe.qzz.io/' + _repo + '.git', branch], repoRoot) : runCmd('git', ['fetch', '--prune'], repoRoot); pushCmd('git fetch --prune', fetch); if (!fetch.ok) throw new Error('Gagal git fetch.');