feat(forgejo): Add auto_init parameter to provider_create_repo

This commit is contained in:
Matteo Cherubini 2026-06-12 11:46:31 +02:00
parent e169c09015
commit 6ef9269df1

View file

@ -15,6 +15,7 @@ provider_create_repo() {
local name="$1" local name="$1"
local desc="$2" local desc="$2"
local private="$3" local private="$3"
local auto_init="${4:-false}" # genomi: true (submodule add esige un branch). master: false (git init locale + push).
local http_code local http_code
http_code=$(curl -s -o /dev/null -w "%{http_code}" \ http_code=$(curl -s -o /dev/null -w "%{http_code}" \
@ -25,7 +26,7 @@ provider_create_repo() {
\"name\": \"${name}\", \"name\": \"${name}\",
\"description\": \"${desc}\", \"description\": \"${desc}\",
\"private\": ${private}, \"private\": ${private},
\"auto_init\": false \"auto_init\": ${auto_init}
}") }")
case "$http_code" in case "$http_code" in