This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch aevri/win32_receive_signals in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 83a538eee784873742397c05efda9fe18bb9e272 Author: Angelos Evripiotis <[email protected]> AuthorDate: Tue Oct 15 14:21:55 2019 +0100 testing/.../site: windows-friendly HAVE_OLD_GIT --- src/buildstream/testing/_utils/site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py index b098b7d..ca74d95 100644 --- a/src/buildstream/testing/_utils/site.py +++ b/src/buildstream/testing/_utils/site.py @@ -16,7 +16,9 @@ try: HAVE_GIT = True out = str(subprocess.check_output(['git', '--version']), "utf-8") - version = tuple(int(x) for x in out.split(' ')[2].split('.')) + # e.g. on Git for Windows we get "git version 2.21.0.windows.1". + # e.g. on Mac via Homebrew we get "git version 2.19.0". + version = tuple(int(x) for x in out.split(' ')[2].split('.')[:3]) HAVE_OLD_GIT = version < (1, 8, 5) GIT_ENV = {
