ci: 移除浅克隆 depth 限制以杜绝 shallow roots 协商引发的 not our ref 异常
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
1 parent
9fc65b5003
commit
43301a9a6e
1 file changed
+1
-7
+1
-7
@@ -18,16 +18,10 @@ trigger:
|
||||
steps:
|
||||
- name: clone
|
||||
image: alpine/git
|
||||
environment:
|
||||
GIT_TRACE: "1"
|
||||
GIT_CURL_VERBOSE: "1"
|
||||
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 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}"
|
||||
|
||||
- name: install
|
||||
|
||||
Reference in new issue
Block a user