debug: inspect workspace git config
This commit is contained in:
parent
4aad0afeac
commit
2d0d9728b2
1 changed files with 4 additions and 3 deletions
|
|
@ -14,9 +14,10 @@ jobs:
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}"
|
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}"
|
||||||
echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}"
|
echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}"
|
||||||
env | grep -iE "^GIT" | sort || echo "(no GIT env vars)"
|
echo "=== workspace git config ==="
|
||||||
git config --list --global | grep -E "url|insteadOf" || echo "(no url rewrites in global gitconfig)"
|
cat "${GITHUB_WORKSPACE}/.git/config" 2>/dev/null || echo "(no workspace .git/config)"
|
||||||
git config --list --system 2>/dev/null | grep -E "url|insteadOf" || echo "(no url rewrites in system gitconfig)"
|
echo "=== all git config ==="
|
||||||
|
git config --list 2>/dev/null | grep -E "url|insteadOf" || echo "(no url rewrites anywhere)"
|
||||||
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
|
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
|
||||||
cd repo.git
|
cd repo.git
|
||||||
git push --prune \
|
git push --prune \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue