unit test failure on macOS

- goofy version string: '2.5.4 (Apple Git-61)\n'
This commit is contained in:
Curtis Doty 2016-11-20 17:38:14 -08:00 committed by Xavier Fernandez
parent b559221ee1
commit 0b17c81bd4
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class Git(VersionControl):
VERSION_PFX = 'git version '
version = self.run_command(['version'], show_stdout=False)
if version.startswith(VERSION_PFX):
version = version[len(VERSION_PFX):]
version = version[len(VERSION_PFX):].split()[0]
else:
version = ''
# get first 3 positions of the git version becasue