feat(forgejo): Add auto_init parameter to provider_create_repo
This commit is contained in:
parent
e169c09015
commit
6ef9269df1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue