We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00006b4 commit 24ea563Copy full SHA for 24ea563
1 file changed
.github/workflows/main.yml
@@ -40,13 +40,12 @@ jobs:
40
- name: 克隆源仓库
41
run: |
42
cd source_repo
43
- # 使用轻量克隆
44
if [ -n "${{ github.event.inputs.branch }}" ]; then
45
echo "正在克隆 ${{ github.event.inputs.repo_url }} 的分支: ${{ github.event.inputs.branch }}"
46
- git clone --depth 1 --single-branch --branch "${{ github.event.inputs.branch }}" "${{ github.event.inputs.repo_url }}" .
+ git clone --single-branch --branch "${{ github.event.inputs.branch }}" "${{ github.event.inputs.repo_url }}" .
47
else
48
echo "正在克隆 ${{ github.event.inputs.repo_url }} 的默认分支"
49
- git clone --depth 1 --single-branch "${{ github.event.inputs.repo_url }}" .
+ git clone --single-branch "${{ github.event.inputs.repo_url }}" .
50
fi
51
52
- name: 生成补丁文件
0 commit comments