From d46fa73824268f9a3568893e5ada5e6fbbc98186 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Fri, 12 Sep 2014 00:24:39 +0530 Subject: [PATCH] better way to check git version --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index edea7086..8795bd16 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -186,7 +186,7 @@ def get_git_version(): def check_git_for_shallow_clone(): git_version = get_git_version() - if '1.9' in git_version or '2.0' in git_version: + if git_version.startswith('1.9') or git_version.startswith('2'): return True return False