fix: create mock git repo before disinto init for smoke test
This commit is contained in:
parent
cceb711aa2
commit
e78ae32225
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue