From a2c45fa7f0050fede1efa3cfd52278edf1540fe1 Mon Sep 17 00:00:00 2001 From: Max von Hippel Date: Wed, 25 May 2022 11:01:57 -0700 Subject: [PATCH] Change `git` to `https` Using `git` in the URL can cause it to hang and time-out. I encountered this issue on Linux Mint. It's also discussed [here](https://github.com/adaptlearning/adapt_authoring/issues/1431). This fixes the issue. --- scripts/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.py b/scripts/run.py index 5f4c0af..86bf41d 100755 --- a/scripts/run.py +++ b/scripts/run.py @@ -197,7 +197,7 @@ def pubsub_commit(ref_str): if re.match(r'\b([a-f0-9]{40})\b', ref_str): return ref_str - out = subprocess.run(['git', 'ls-remote', 'git://github.com/libp2p/go-libp2p-pubsub'], + out = subprocess.run(['git', 'ls-remote', 'https://github.com/libp2p/go-libp2p-pubsub'], check=True, capture_output=True, text=True) # look for matching branch or tag in output