fix(ci): 采用标准 git clone 与 protocol v1 规避浅克隆空 refspec 异常
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi committed 2026-09-11 10:16:56 +08:00
1 parent 83fe4295f7
commit 214b5d5799
1 file changed
+2 -4
+2 -4
View File
@@ -20,10 +20,8 @@ steps:
image: alpine/git image: alpine/git
commands: commands:
- "git config --global http.version HTTP/1.1" - "git config --global http.version HTTP/1.1"
- "git config --global http.postBuffer 524288000" - "git config --global protocol.version 1"
- "git init" - "git clone --depth=50 -b ${DRONE_COMMIT_BRANCH} ${DRONE_REMOTE_URL} ."
- "git remote add origin ${DRONE_REMOTE_URL}"
- "git fetch --depth=50 origin +refs/heads/${DRONE_COMMIT_BRANCH}:"
- "git checkout -qf ${DRONE_COMMIT_SHA}" - "git checkout -qf ${DRONE_COMMIT_SHA}"
- name: install - name: install