bugfix: usar https por defecto como esquema si se detecta ssh

This commit is contained in:
jt
2026-07-09 18:04:40 -03:00
parent ecfe058f8d
commit 5989699f08
+1 -1
View File
@@ -118,7 +118,7 @@ def get_remote_api(token: str) -> RemoteAPI:
[schema, host, repository] = RemoteAPI.parse(flowconfig["flow.remote"]) [schema, host, repository] = RemoteAPI.parse(flowconfig["flow.remote"])
if remote_type == "gitea": if remote_type == "gitea":
return GiteaRemoteAPI(schema + host, repository, token) return GiteaRemoteAPI(("https://" if schema == "ssh://" else schema) + host, repository, token)
elif remote_type == "bitbucket": elif remote_type == "bitbucket":
return BitbucketRemoteAPI(repository, token) return BitbucketRemoteAPI(repository, token)
elif remote_type == "github": elif remote_type == "github":