Skip to content

Commit

Permalink
Adapt parsing of git version output. Fixes failing test and fixes #28.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 12, 2015
1 parent 8841e80 commit 0f77485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hgtools/managers/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 0f77485

Please sign in to comment.