Fix Gitea CI/CD checkout: use fetch-depth: 50 with git protocol config to resolve 'bad pack header' error
CI/CD Pipeline / Unit Tests (Python 3.10) (push) Successful in 6m40s
CI/CD Pipeline / Unit Tests (Python 3.11) (push) Successful in 6m38s
CI/CD Pipeline / Unit Tests (Python 3.9) (push) Successful in 6m40s
CI/CD Pipeline / Code Quality & Linting (push) Successful in 54s
CI/CD Pipeline / Security Scanning (push) Successful in 24s
CI/CD Pipeline / Integration Tests (push) Successful in 3m30s
CI/CD Pipeline / Generate Test Report (push) Successful in 3s
CI/CD Pipeline / Build Docker Image (push) Successful in 16m2s
CI/CD Pipeline / CI/CD Pipeline Status (push) Successful in 3s

This commit is contained in:
k.eaven committed 2026-10-21 08:32:00 +00:00
1 parent 8e7a68d6a2
commit 872b016707
1 file changed
+40 -5
+40 -5
View File
@@ -37,7 +37,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 50
- name: Configure Git
run: |
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@@ -102,7 +109,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 50
- name: Configure Git
run: |
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@@ -167,7 +181,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 50
- name: Configure Git
run: |
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@@ -218,7 +239,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 50
- name: Configure Git
run: |
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@@ -275,7 +303,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 50
- name: Configure Git
run: |
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2