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 )