feature: usar esquema de remoto para host de api gitea

This commit is contained in:
jt
2026-07-09 18:00:39 -03:00
parent 1cc2de0b75
commit ecfe058f8d
2 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -115,10 +115,10 @@ def get_remote_api(token: str) -> RemoteAPI:
raise GitFlowError("El repositorio no tiene configurado un remoto.")
remote_type = flowconfig.get("flow.remote-type", "").lower()
[host, repository] = RemoteAPI.parse(flowconfig["flow.remote"])
[schema, host, repository] = RemoteAPI.parse(flowconfig["flow.remote"])
if remote_type == "gitea":
return GiteaRemoteAPI("https://" + host, repository, token)
return GiteaRemoteAPI(schema + host, repository, token)
elif remote_type == "bitbucket":
return BitbucketRemoteAPI(repository, token)
elif remote_type == "github":