diff --git a/bin/disinto b/bin/disinto index 1f276d2..f01fdf6 100755 --- a/bin/disinto +++ b/bin/disinto @@ -1920,8 +1920,10 @@ p.write_text(text) echo "Repo: ${repo_root} (existing clone)" fi - # Push to local Forgejo - push_to_forge "$repo_root" "$forge_url" "$forge_repo" + # Push to local Forgejo (skip if SKIP_PUSH is set) + if [ "${SKIP_PUSH:-false}" = "false" ]; then + push_to_forge "$repo_root" "$forge_url" "$forge_repo" + fi # Detect primary branch if [ -z "$branch" ]; then diff --git a/tests/smoke-init.sh b/tests/smoke-init.sh index 2b844fe..85972c7 100644 --- a/tests/smoke-init.sh +++ b/tests/smoke-init.sh @@ -159,6 +159,9 @@ git commit --quiet -m "Initial commit" export SMOKE_FORGE_URL="$FORGE_URL" export FORGE_URL +# Skip push to mock server (no git support) +export SKIP_PUSH=true + if bash "${FACTORY_ROOT}/bin/disinto" init \ "${TEST_SLUG}" \ --bare --yes \