mirror of https://github.com/pypa/pip
unit test failure on macOS
- goofy version string: '2.5.4 (Apple Git-61)\n'
This commit is contained in:
parent
b559221ee1
commit
0b17c81bd4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue