fix(ci): 采用标准 git clone 与 protocol v1 规避浅克隆空 refspec 异常
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
1 parent
83fe4295f7
commit
214b5d5799
1 file changed
+2
-4
+2
-4
@@ -20,10 +20,8 @@ steps:
|
||||
image: alpine/git
|
||||
commands:
|
||||
- "git config --global http.version HTTP/1.1"
|
||||
- "git config --global http.postBuffer 524288000"
|
||||
- "git init"
|
||||
- "git remote add origin ${DRONE_REMOTE_URL}"
|
||||
- "git fetch --depth=50 origin +refs/heads/${DRONE_COMMIT_BRANCH}:"
|
||||
- "git config --global protocol.version 1"
|
||||
- "git clone --depth=50 -b ${DRONE_COMMIT_BRANCH} ${DRONE_REMOTE_URL} ."
|
||||
- "git checkout -qf ${DRONE_COMMIT_SHA}"
|
||||
|
||||
- name: install
|
||||
|
||||
Reference in new issue
Block a user