fix(crabbox): reinitialize invalid changed-gate git dirs · openclaw/openclaw@ecdc925
vincentkoc
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1333,7 +1333,8 @@ function mergeBaseForChangedGate() {
|
1333 | 1333 | function remoteGitBootstrapForChangedGate(changedGateBase) { |
1334 | 1334 | const quotedBase = shellQuote(changedGateBase); |
1335 | 1335 | return [ |
1336 | | -"if ! git rev-parse --git-dir >/dev/null 2>&1; then", |
| 1336 | +"if ! git status --short >/dev/null 2>&1; then", |
| 1337 | +"rm -rf .git;", |
1337 | 1338 | "git init -q;", |
1338 | 1339 | "git remote add origin https://github.com/openclaw/openclaw.git 2>/dev/null || git remote set-url origin https://github.com/openclaw/openclaw.git;", |
1339 | 1340 | `git fetch -q --depth=1 origin ${quotedBase}:refs/remotes/origin/main;`, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。