1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

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

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