fix: avoid tag fetch for main installer ref · openclaw/openclaw@0d22fbf
keshavbotage
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1960,16 +1960,17 @@ checkout_git_openclaw_ref() {
|
1960 | 1960 | return 0 |
1961 | 1961 | fi |
1962 | 1962 | |
1963 | | - run_quiet_step "Fetching requested version" git -C "$repo_dir" fetch --tags origin |
1964 | | - |
1965 | 1963 | if [[ "$ref" == "main" ]]; then |
| 1964 | + run_quiet_step "Fetching requested version" git -C "$repo_dir" fetch --no-tags origin main |
1966 | 1965 | run_quiet_step "Checking out main" git -C "$repo_dir" checkout main |
1967 | 1966 | if [[ "$GIT_UPDATE" == "1" ]]; then |
1968 | | - run_quiet_step "Updating repository" git -C "$repo_dir" pull --rebase || true |
| 1967 | + run_quiet_step "Updating repository" git -C "$repo_dir" pull --rebase --no-tags || true |
1969 | 1968 | fi |
1970 | 1969 | return 0 |
1971 | 1970 | fi |
1972 | 1971 | |
| 1972 | + run_quiet_step "Fetching requested version" git -C "$repo_dir" fetch --tags origin |
| 1973 | + |
1973 | 1974 | if git -C "$repo_dir" rev-parse --verify --quiet "refs/tags/${ref}^{commit}" >/dev/null; then |
1974 | 1975 | run_quiet_step "Checking out ${ref}" git -C "$repo_dir" checkout --detach "$ref" |
1975 | 1976 | return 0 |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。