Commit 654926ab authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'support-ssh-urls'

15d3e7ce

 release-mr: support ssh remote URLs
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !9
parents 50265595 15d3e7ce
......@@ -158,6 +158,14 @@ if __name__ == '__main__':
if opts.fork is None:
remote_url = git('remote', 'get-url', opts.remote)
protocols = [
'https://',
'http://',
'ssh://',
]
if not any(map(lambda p: remote_url.startswith(p), protocols)):
remote_url = remote_url.replace(':', '/')
remote_url = f'ssh://{remote_url}'
remote_url = remote_url.split('/')
opts.fork = '/'.join(remote_url[3:-1])
......
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