Avoid global git config in app generator

This commit is contained in:
2026-05-20 14:00:51 +02:00
parent 4afe00a348
commit d38b8d0fa2
+1 -1
View File
@@ -110,11 +110,11 @@ if grep -q '"message"' /tmp/appfactory-create-hook-response.json; then
cat /tmp/appfactory-create-hook-response.json cat /tmp/appfactory-create-hook-response.json
fi fi
git config --global init.defaultBranch main || true
git init git init
git config user.name "AppFactory Bot" git config user.name "AppFactory Bot"
git config user.email "appfactory@local" git config user.email "appfactory@local"
git branch -M main git branch -M main
GITEA_PUSH_URL="${GITEA_URL/http:\/\//http:\/\/${GITEA_TOKEN}@}" GITEA_PUSH_URL="${GITEA_URL/http:\/\//http:\/\/${GITEA_TOKEN}@}"
git remote add origin "$GITEA_PUSH_URL/$GITEA_ORG/$APP_ID.git" git remote add origin "$GITEA_PUSH_URL/$GITEA_ORG/$APP_ID.git"