From 214b5d5799b1996231d23abd9af0fd377ebb06cf Mon Sep 17 00:00:00 2001 From: seaHi Date: Fri, 11 Sep 2026 10:16:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E9=87=87=E7=94=A8=E6=A0=87=E5=87=86?= =?UTF-8?q?=20git=20clone=20=E4=B8=8E=20protocol=20v1=20=E8=A7=84=E9=81=BF?= =?UTF-8?q?=E6=B5=85=E5=85=8B=E9=9A=86=E7=A9=BA=20refspec=20=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 52c3ad5..4e7f0b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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