2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 12:39:01 +00:00

Merge pull request #357 from saurabh6790/shallow_clone

[fix] check shallow clone param in common site config too
This commit is contained in:
Nabin Hait 2017-02-10 13:21:07 +05:30 committed by GitHub
commit ae17b6b18d

View File

@ -308,7 +308,12 @@ def get_git_version():
def check_git_for_shallow_clone(): def check_git_for_shallow_clone():
from .config.common_site_config import get_config from .config.common_site_config import get_config
if get_config(".").get('release_bench'): config = get_config('.')
if config.get('release_bench'):
return False
if not config.get('shallow_clone'):
return False return False
git_version = get_git_version() git_version = get_git_version()