From f3b08055e60bf33a44a5e6b5413d07acc8ea1d2a Mon Sep 17 00:00:00 2001 From: Kyle Swanson Date: Sun, 1 Dec 2024 13:02:42 -0800 Subject: [PATCH] Adding 128 error code to no git url --- src/tap/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tap/utils.py b/src/tap/utils.py index 72280ab..4456d7d 100644 --- a/src/tap/utils.py +++ b/src/tap/utils.py @@ -104,9 +104,10 @@ def get_git_url(self, commit_hash: bool = True) -> str: try: url = check_output(input_remote, cwd=self.repo_path) except subprocess.CalledProcessError as e: - if e.returncode == 2: + if e.returncode in {2, 128}: # https://git-scm.com/docs/git-remote#_exit_status # 2: The remote does not exist. + # 128: The remote was not found. return "" raise e