We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792da8d commit 5e5194eCopy full SHA for 5e5194e
src/tap/utils.py
@@ -86,7 +86,7 @@ def get_git_version(self) -> tuple:
86
"""
87
raw = check_output(["git", "--version"])
88
number_start_index = next(i for i, c in enumerate(raw) if c.isdigit())
89
- return tuple(int(num) for num in raw[number_start_index:].split("."))
+ return tuple(int(num) for num in raw[number_start_index:].split(".") if num.isdigit())
90
91
def get_git_url(self, commit_hash: bool = True) -> str:
92
"""Gets the https url of the git repo where the command is run.
0 commit comments