fix:补齐离线工作流 bare repo 安全白名单

This commit is contained in:
LoveLosita
2026-05-09 15:35:33 +08:00
parent 6ff1b3a2f2
commit 06d7eaeda0

View File

@@ -30,6 +30,7 @@ jobs:
echo "gitea bare repo not found: ${bare_repo}" >&2 echo "gitea bare repo not found: ${bare_repo}" >&2
exit 65 exit 65
fi fi
git config --global --add safe.directory "${bare_repo}"
rm -rf "${worktree}" rm -rf "${worktree}"
mkdir -p "${worktree_root}" mkdir -p "${worktree_root}"
git clone --no-checkout "${bare_repo}" "${worktree}" git clone --no-checkout "${bare_repo}" "${worktree}"