Skip to content

Commit 697d1da

Browse files
committed
Clean output of git vesion
1 parent 6d8230d commit 697d1da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dfetch/vcs/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def get_tool_version() -> tuple[str, str]:
320320
"""Get the name and version of git."""
321321
result = run_on_cmdline(logger, ["git", "--version"])
322322
tool, version = result.stdout.decode().strip().split("version", maxsplit=1)
323-
return (str(tool), str(version))
323+
return (tool.strip(), version.strip())
324324

325325
def __init__(self, path: str | Path = ".") -> None:
326326
"""Create a local git repo."""

0 commit comments

Comments
 (0)