We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d8230d commit 697d1daCopy full SHA for 697d1da
1 file changed
dfetch/vcs/git.py
@@ -320,7 +320,7 @@ def get_tool_version() -> tuple[str, str]:
320
"""Get the name and version of git."""
321
result = run_on_cmdline(logger, ["git", "--version"])
322
tool, version = result.stdout.decode().strip().split("version", maxsplit=1)
323
- return (str(tool), str(version))
+ return (tool.strip(), version.strip())
324
325
def __init__(self, path: str | Path = ".") -> None:
326
"""Create a local git repo."""
0 commit comments