Skip to content

Commit

Permalink
Adding 128 error code to no git url
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Dec 1, 2024
1 parent 95c6207 commit f3b0805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f3b0805

Please sign in to comment.