fix(gitea): clone 失敗訊息不要被 git 的多行 stderr 截斷成半個字
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -902,7 +902,7 @@ export async function importFromRemote(code, { owner = null, slug = null, force
|
||||
const detail = AREA_KEYS
|
||||
.map((key) => `${AREAS[key].label}:${results[key]?.ok
|
||||
? `${results[key].written?.length ?? 0} 個檔案`
|
||||
: String(results[key]?.reason || "失敗").slice(0, 80)}`)
|
||||
: String(results[key]?.reason || "失敗").replace(/\s+/g, " ").slice(0, 100)}`)
|
||||
.join(";");
|
||||
throw new Error(
|
||||
`從 ${theOwner}/${code} 拉回來的內容沒有 IDENTITY.md(人格的最低要件),已中止${fresh ? "並清掉半成品" : ""}。${detail}`,
|
||||
|
||||
Reference in New Issue
Block a user