Merge pull request #53 from joedevivo/master

Added `ssh://git@` url pattern
This commit is contained in:
Jeff Epler 2019-12-27 14:30:15 -06:00 committed by GitHub
commit b014d651cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,9 @@ def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
for line in versions.stdout.split(b"\n"):
if not line:
continue
if line.startswith(b"git@"):
if line.startswith(b"ssh://git@"):
repo = b"https://" + line.split(b"@")[1][:-len(".git")]
elif line.startswith(b"git@"):
repo = b"https://github.com/" + line.split(b":")[1][:-len(".git")]
elif line.startswith(b"https:"):
repo = line.strip()[:-len(".git")]