2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

better way to check git version

This commit is contained in:
Pratik Vyas 2014-09-12 00:24:39 +05:30
parent e22ea566dd
commit d46fa73824

View File

@ -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