bugfix: usar https por defecto como esquema si se detecta ssh
This commit is contained in:
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user