diff options
author | Chandan Singh <chandan@chandansingh.net> | 2019-01-31 15:39:19 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2019-01-31 15:39:19 +0000 |
commit | 96c0fbd6d7d6211490ef005d0037c9f52b957083 (patch) | |
tree | 4b64cf66aee4caa9f3778e60b3712adc1a85e413 | |
parent | fa4a21ce3f04f411c5af20052fff48a17115acbd (diff) | |
parent | dd791373f684c1faed8829ef426477b76185364e (diff) | |
download | buildstream-96c0fbd6d7d6211490ef005d0037c9f52b957083.tar.gz |
Merge branch 'chandan/fix-git-version-mac' into 'master'
testutils/site.py: Support parsing more exotic git versions
See merge request BuildStream/buildstream!1118
-rw-r--r-- | tests/testutils/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils/site.py b/tests/testutils/site.py index b7bfa11cf..31bcffbca 100644 --- a/tests/testutils/site.py +++ b/tests/testutils/site.py @@ -18,7 +18,7 @@ try: utils.get_host_tool('git') HAVE_GIT = True out = str(subprocess.check_output(['git', '--version']), "utf-8") - version = tuple(int(x) for x in out.split(' ', 2)[2].split('.')) + version = tuple(int(x) for x in out.split(' ')[2].split('.')) HAVE_OLD_GIT = version < (1, 8, 5) except ProgramNotFoundError: HAVE_GIT = False |