fix: auto-migrate git remote from github to git.cutos.ai on install/update; bump v1.2.2
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -23,6 +23,13 @@ fi
|
||||
|
||||
cd "$REPO_DIR"
|
||||
|
||||
# 如果 remote 仍指向 GitHub,迁移到 git.cutos.ai
|
||||
CURRENT_REMOTE=$(git remote get-url "$REMOTE" 2>/dev/null || echo "")
|
||||
if echo "$CURRENT_REMOTE" | grep -q "github.com"; then
|
||||
echo "==> Migrating remote from GitHub to git.cutos.ai ..."
|
||||
git remote set-url "$REMOTE" https://git.cutos.ai/claw-daemon/clawd.git
|
||||
fi
|
||||
|
||||
echo "==> Fetching latest from $REMOTE/$BRANCH ..."
|
||||
git fetch "$REMOTE"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user