fix: create mock git repo before disinto init for smoke test
Some checks failed
ci/woodpecker/pr/smoke-init Pipeline is pending
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
Agent 2026-04-02 13:25:19 +00:00
parent cceb711aa2
commit e78ae32225

View file

@ -146,6 +146,16 @@ git config --global user.name "Smoke Test"
USER=$(whoami) USER=$(whoami)
export USER export USER
# Create mock git repo to avoid clone failure (mock server has no git support)
mkdir -p "/tmp/smoke-test-repo"
cd "/tmp/smoke-test-repo"
git init --quiet
git config user.email "smoke@test.local"
git config user.name "Smoke Test"
echo "# smoke-repo" > README.md
git add README.md
git commit --quiet -m "Initial commit"
export SMOKE_FORGE_URL="$FORGE_URL" export SMOKE_FORGE_URL="$FORGE_URL"
export FORGE_URL export FORGE_URL