Skip to content

Commit f3b0805

Browse files
committed
Adding 128 error code to no git url
1 parent 95c6207 commit f3b0805

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tap/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def get_git_url(self, commit_hash: bool = True) -> str:
104104
try:
105105
url = check_output(input_remote, cwd=self.repo_path)
106106
except subprocess.CalledProcessError as e:
107-
if e.returncode == 2:
107+
if e.returncode in {2, 128}:
108108
# https://git-scm.com/docs/git-remote#_exit_status
109109
# 2: The remote does not exist.
110+
# 128: The remote was not found.
110111
return ""
111112
raise e
112113

0 commit comments

Comments
 (0)