Skip to content

Commit 5e5194e

Browse files
committed
fix for windows
1 parent 792da8d commit 5e5194e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tap/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_git_version(self) -> tuple:
8686
"""
8787
raw = check_output(["git", "--version"])
8888
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("."))
89+
return tuple(int(num) for num in raw[number_start_index:].split(".") if num.isdigit())
9090

9191
def get_git_url(self, commit_hash: bool = True) -> str:
9292
"""Gets the https url of the git repo where the command is run.

0 commit comments

Comments
 (0)