Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjm97 committed Nov 28, 2024
1 parent 792da8d commit 5e5194e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_git_version(self) -> tuple:
"""
raw = check_output(["git", "--version"])
number_start_index = next(i for i, c in enumerate(raw) if c.isdigit())
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())

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

0 comments on commit 5e5194e

Please sign in to comment.