From ce302e0c6586dedfc09d740e3b2c58ee37c77099 Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Wed, 22 Sep 2021 14:43:38 +1000 Subject: [PATCH] testboard: alwaus use https URLs The AWS test runner does not have a GitHub ssh key, so can only access repositories via https. Signed-off-by: Gerwin Klein --- misc/testboard/testboardpush | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/testboard/testboardpush b/misc/testboard/testboardpush index 4e3426bed..7ed3fc663 100755 --- a/misc/testboard/testboardpush +++ b/misc/testboard/testboardpush @@ -61,9 +61,13 @@ def subprocess_output(*args, **kwargs): # to be public. def fixup_github(remote): git_url = 'git@github.com:' + ssh_url = 'ssh://' + git_url + https_url = 'https://github.com/' url, repo = remote if url.startswith(git_url): - return 'https://github.com/' + url[len(git_url):], repo + return https_url + url[len(git_url):], repo + elif url.startswith(ssh_url): + return https_url + url[len(ssh_url):], repo else: return remote