From 758112d93f14d6196e19b64e13f694b35b5640cb Mon Sep 17 00:00:00 2001 From: Breadway Date: Wed, 17 Jun 2026 14:38:34 +0800 Subject: [PATCH] debug: add git env and system config inspection --- .forgejo/workflows/mirror.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/mirror.yml b/.forgejo/workflows/mirror.yml index 6c45f3d..53b0502 100644 --- a/.forgejo/workflows/mirror.yml +++ b/.forgejo/workflows/mirror.yml @@ -14,7 +14,9 @@ jobs: set -euo pipefail echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}" echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}" - git config --list --global | grep -E "url|insteadOf" || echo "(no url rewrites)" + env | grep -iE "^GIT" | sort || echo "(no GIT env vars)" + git config --list --global | grep -E "url|insteadOf" || echo "(no url rewrites in global gitconfig)" + git config --list --system 2>/dev/null | grep -E "url|insteadOf" || echo "(no url rewrites in system gitconfig)" git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git cd repo.git git push --prune \