ci: 移除浅克隆 depth 限制以杜绝 shallow roots 协商引发的 not our ref 异常
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi committed 2026-09-11 11:16:51 +08:00
1 parent 9fc65b5003
commit 43301a9a6e
1 file changed
+1 -7
+1 -7
View File
@@ -18,16 +18,10 @@ trigger:
steps: steps:
- name: clone - name: clone
image: alpine/git image: alpine/git
environment:
GIT_TRACE: "1"
GIT_CURL_VERBOSE: "1"
commands: commands:
- "apk add --no-cache curl bind-tools || true"
- "dig +short git.seahi.me || true"
- "curl -ivL https://git.seahi.me/seahi/blogflare.git/info/refs?service=git-upload-pack || true"
- "git config --global http.version HTTP/1.1" - "git config --global http.version HTTP/1.1"
- "git config --global protocol.version 1" - "git config --global protocol.version 1"
- "git clone --depth=50 -b ${DRONE_COMMIT_BRANCH} ${DRONE_REMOTE_URL} ." - "git clone -b ${DRONE_COMMIT_BRANCH} ${DRONE_REMOTE_URL} ."
- "git checkout -qf ${DRONE_COMMIT_SHA}" - "git checkout -qf ${DRONE_COMMIT_SHA}"
- name: install - name: install