mirror of
https://github.com/libp2p/gossipsub-hardening.git
synced 2026-01-07 21:24:11 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user