From a9458578861074089ce16acceaf3b346fb702640 Mon Sep 17 00:00:00 2001 From: Rongxin Liu Date: Tue, 12 Aug 2025 13:37:18 +0100 Subject: [PATCH] increase timeout for git ls-remote command --- lib50/_api.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib50/_api.py b/lib50/_api.py index 8b824d0..31f35de 100644 --- a/lib50/_api.py +++ b/lib50/_api.py @@ -809,7 +809,7 @@ def _get_branches(self): else: cmd = f"git ls-remote --heads {self.origin}" try: - with spawn(cmd) as child: + with spawn(cmd, timeout=10) as child: output = child.read().strip().split("\r\n") except pexpect.TIMEOUT: if "Username for" in child.buffer: diff --git a/setup.py b/setup.py index 299a857..1ca5d1c 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,6 @@ python_requires=">= 3.8", packages=["lib50"], url="https://github.com/cs50/lib50", - version="3.1.3", + version="3.1.4", include_package_data=True )