From 0fe0ed63538ee0e9d85d1fb25074f8f69becf737 Mon Sep 17 00:00:00 2001 From: Joe DeVivo Date: Fri, 27 Dec 2019 08:26:09 -0700 Subject: [PATCH] My git urls look like ssh://git@github.com/**/.git --- circuitpython_build_tools/scripts/build_bundles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/circuitpython_build_tools/scripts/build_bundles.py b/circuitpython_build_tools/scripts/build_bundles.py index 7a8e320..be3ba8e 100755 --- a/circuitpython_build_tools/scripts/build_bundles.py +++ b/circuitpython_build_tools/scripts/build_bundles.py @@ -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")]