mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
better way to check git version
This commit is contained in:
parent
e22ea566dd
commit
d46fa73824
@ -186,7 +186,7 @@ def get_git_version():
|
|||||||
|
|
||||||
def check_git_for_shallow_clone():
|
def check_git_for_shallow_clone():
|
||||||
git_version = get_git_version()
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user