2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

[fix] check shallow clone param in common site config too

This commit is contained in:
Saurabh 2017-02-02 11:42:39 +05:30
parent 2b6715594e
commit 44d6e783e6

View File

@ -308,7 +308,12 @@ def get_git_version():
def check_git_for_shallow_clone():
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
git_version = get_git_version()