fix(update): hapus referensi info.* di handler POST (info is not defined)
All checks were successful
CI / test (push) Successful in 1m44s
All checks were successful
CI / test (push) Successful in 1m44s
This commit is contained in:
@@ -4664,8 +4664,6 @@ router.post('/update/run', requireAdminSession, restrictToAdmin, (req, res) => {
|
||||
|
||||
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
|
||||
? runCmd('git', ['fetch', '--prune', _base + '/' + _repo + '.git', branch], repoRoot, 120000)
|
||||
: runCmd('git', ['fetch', '--prune'], repoRoot);
|
||||
|
||||
Reference in New Issue
Block a user