Unverified Commit e77142d3 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Recommend ssh remotes

parent 86bf89ec
......@@ -45,6 +45,14 @@ class RepositoryConnection:
sys.exit(1)
repository: str = next(origin.urls)
if repository.startswith("http"):
Utils.log(
LogType.INFO,
"Found http remote, if you want to switch this "
+ "repository to ssh, run `git lab rewrite-remote "
+ "origin`",
)
print()
gitlab_url = Utils.gitlab_instance_url(repository)
gitlab_hostname: Optional[str] = urlparse(gitlab_url).hostname
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment