gir protocal v2 강제.
Some checks failed
Git Repository Backup (Pre-scan) / backup (push) Failing after 3h0m58s

This commit is contained in:
Lectom C Han
2025-12-19 17:58:35 +09:00
parent 139e7380df
commit f0c49d1fc8
3 changed files with 13 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ jobs:
INPUT_BRANCHES: ${{ github.event.inputs.branches }}
NOTIFY_WEBHOOK: ${{ vars.NOTIFY_WEBHOOK }} # Optional chat webhook
SYNC_TAGS: ${{ vars.SYNC_TAGS }} # Optional, "false" to skip tag sync
USE_SHALLOW_EXCLUDE: ${{ vars.USE_SHALLOW_EXCLUDE }} # Optional, "false" to disable shallow-exclude
GIT_PROTOCOL: version=2
run: |
set -euo pipefail
@@ -49,6 +51,7 @@ jobs:
NOTIFY_WEBHOOK="${NOTIFY_WEBHOOK:-}"
SYNC_TAGS="${SYNC_TAGS:-true}"
TARGET_SEED_DEPTH="${TARGET_SEED_DEPTH:-50}"
USE_SHALLOW_EXCLUDE="${USE_SHALLOW_EXCLUDE:-true}"
TOTAL_SUCCESS=0
TOTAL_SKIP=0
TOTAL_ERROR=0
@@ -262,7 +265,7 @@ jobs:
fi
fi
shallow_exclude_args=()
if ${repo_exists} && [[ -n "${target_commit:-}" ]]; then
if ${repo_exists} && [[ -n "${target_commit:-}" ]] && [[ "${USE_SHALLOW_EXCLUDE}" != "false" ]]; then
shallow_exclude_args=(--shallow-exclude="${target_commit}")
fi