fix(mosaic-tools): pass explicit Gitea repo args

This commit is contained in:
Jarvis
2026-05-26 14:29:42 -05:00
parent 6422c65961
commit 4a7bebb1cc
11 changed files with 107 additions and 41 deletions

View File

@@ -74,6 +74,16 @@ get_repo_name() {
echo "${repo_info##*/}"
}
get_repo_slug() {
get_repo_info
}
get_gitea_repo_args() {
local repo
repo=$(get_repo_slug) || return 1
printf -- '--repo %q --login %q' "$repo" "${GITEA_LOGIN:-mosaicstack}"
}
get_remote_host() {
local remote_url
remote_url=$(git remote get-url origin 2>/dev/null || true)