summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2019-01-31 15:39:19 +0000
committerChandan Singh <chandan@chandansingh.net>2019-01-31 15:39:19 +0000
commit96c0fbd6d7d6211490ef005d0037c9f52b957083 (patch)
tree4b64cf66aee4caa9f3778e60b3712adc1a85e413
parentfa4a21ce3f04f411c5af20052fff48a17115acbd (diff)
parentdd791373f684c1faed8829ef426477b76185364e (diff)
downloadbuildstream-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.py2
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