From 0f774858c0570e854069d7132e46676dab229e74 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 12 Jan 2015 16:26:53 -0500 Subject: [PATCH] Adapt parsing of git version output. Fixes failing test and fixes #28. --- hgtools/managers/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hgtools/managers/cmd.py b/hgtools/managers/cmd.py index 1317b57..a5bdbab 100644 --- a/hgtools/managers/cmd.py +++ b/hgtools/managers/cmd.py @@ -190,4 +190,4 @@ def version(self): @classmethod def _parse_version(cls, version): - return re.match(r'git version (\d+\.\d+.*)', version).group(1) + return re.match(r'git version (\d+\.\d+[^ ]*)', version).group(1)