rebrand: ganti sisa teks 'GitHub' -> 'Gitea' (UI, komentar, dokumen)
This commit is contained in:
1 parent
6817404688
commit
19558b9b94
14 files changed
+20
-20
No files matched your search
@@ -407,7 +407,7 @@ function getUpdateInfo(repoRoot) {
|
||||
? runCmd('git', ['show', 'FETCH_HEAD:version.txt'], repoRoot)
|
||||
: runCmd('git', ['show', `origin/${branch}:version.txt`], repoRoot);
|
||||
if (!remote.ok) {
|
||||
info.error = `Tidak bisa membaca version.txt dari GitHub (origin/${branch}).`;
|
||||
info.error = `Tidak bisa membaca version.txt dari Gitea (origin/${branch}).`;
|
||||
return info;
|
||||
}
|
||||
|
||||
@@ -4643,7 +4643,7 @@ router.post('/update/run', requireAdminSession, restrictToAdmin, (req, res) => {
|
||||
? runCmd('git', ['show', 'FETCH_HEAD:version.txt'], repoRoot)
|
||||
: runCmd('git', ['show', `origin/${branch}:version.txt`], repoRoot);
|
||||
pushCmd(`git show origin/${branch}:version.txt`, remote);
|
||||
if (!remote.ok) throw new Error('Tidak bisa membaca version.txt dari GitHub.');
|
||||
if (!remote.ok) throw new Error('Tidak bisa membaca version.txt dari Gitea.');
|
||||
const remoteVersion = String(remote.stdout || '').trim() || '-';
|
||||
|
||||
if (remoteVersion !== '-' && remoteVersion === localBefore) {
|
||||
|
||||
Reference in new issue
Block a user