From fa40833dfea0f8b0a8a7e89d8e657ca00017db0e Mon Sep 17 00:00:00 2001 From: gewuyou Date: Wed, 16 Jul 2025 19:25:30 +0800 Subject: [PATCH] =?UTF-8?q?ci:=E7=A7=BB=E9=99=A4=20git=20clone=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E4=B8=AD=E7=9A=84=20--depth=3D1=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 .gitlab/workflows/.gitlab-ci.main.yml 文件中 git clone 命令的 --depth=1 参数。 这个修改可能会影响管道机器人的运行时间,尤其是对于 large_run 测试。 --- .gitlab/workflows/.gitlab-ci.main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/workflows/.gitlab-ci.main.yml b/.gitlab/workflows/.gitlab-ci.main.yml index 8a65366..b5d7efb 100644 --- a/.gitlab/workflows/.gitlab-ci.main.yml +++ b/.gitlab/workflows/.gitlab-ci.main.yml @@ -122,7 +122,7 @@ mirror-to-github: - git config --global user.email "pipeline@${GITLAB_URL}" - echo "🔄 正在 clone 当前 GitLab 仓库..." - - git clone --depth=1 --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo + - git clone --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo - cd repo - echo "🔗 添加 GitHub 远程地址..."