Harden Gitea login fallback selection
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
Hermes Agent
2026-06-11 21:15:56 -05:00
parent c4c8a255ee
commit 90e565976d
5 changed files with 35 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ get_gitea_login_for_host() {
fi
if [[ -n "${GITEA_LOGIN:-}" ]]; then
if gitea_url_matches_host "${GITEA_URL:-}" "$host" || tea_login_matches_host "$GITEA_LOGIN" "$host"; then
if tea_login_matches_host "$GITEA_LOGIN" "$host"; then
echo "$GITEA_LOGIN"
return 0
fi