acrn-config: skip git environment check when not do git commit

Check git environment only when '--enable_commit' option was set.

Tracked-On: #3854
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu
2019-10-22 19:21:10 +08:00
committed by wenlingz
parent fbd8597fbf
commit 24d3eaba27
7 changed files with 42 additions and 35 deletions

View File

@@ -34,9 +34,9 @@ ERR_LIST = {}
HEADER_LICENSE = common.open_license() + "\n"
def prepare():
def prepare(check_git):
""" check environment """
return common.check_env()
return common.check_env(check_git)
def print_yel(msg, warn=False):