From 44d6e783e6cdeea51014f417f41c64100cf92a54 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Thu, 2 Feb 2017 11:42:39 +0530 Subject: [PATCH] [fix] check shallow clone param in common site config too --- bench/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index 59cdb7c8..0d338b99 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -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()