diff --git a/README.md b/README.md index b59dcdd..a7ec8ee 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ > 所有内容均由静态源码分析生成,**不包含** ClassIsland 或 ClassHelper 的上游代码;仓库中不含 `repos/` 克隆、构建产物或运行时依赖。分析过程中没有构建、运行或截图任何桌面程序。 +- 已发布仓库(私有,Gitea): +- 克隆地址:`git clone http://210.126.232.10:3000/Love_Chengke/classhelper-island-refactor-prompt.git` + ## 一、仓库内容 | 路径 | 说明 | diff --git a/scripts/push-to-gitea.mjs b/scripts/push-to-gitea.mjs index 260b9b8..f83068c 100644 --- a/scripts/push-to-gitea.mjs +++ b/scripts/push-to-gitea.mjs @@ -71,7 +71,8 @@ const main = async () => { const scheme = base.split('://')[0]; const host = base.split('://')[1]; const authUrl = `${scheme}://${encodeURIComponent(login)}:${encodeURIComponent(token)}@${host}/${login}/${repo}.git`; - git(['remote', 'remove', 'origin']); + const remotes = spawnSync('git', ['remote'], { encoding: 'utf8' }).stdout || ''; + if (/\borigin\b/.test(remotes)) git(['remote', 'remove', 'origin']); git(['remote', 'add', 'origin', authUrl]); try { const pushed = git(['push', '-u', 'origin', 'HEAD:main']);