From 476c0c023fe1d3dddaaaf22fca4d23f4415f08bb Mon Sep 17 00:00:00 2001 From: Henry Sun Date: Wed, 8 May 2019 17:00:26 +0800 Subject: [PATCH] Fix issue #91 DEBUG in common.py dealt as str after loaded from config file --- git_cc/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cc/common.py b/git_cc/common.py index 08248a2..382f162 100644 --- a/git_cc/common.py +++ b/git_cc/common.py @@ -225,7 +225,7 @@ def path(path, args='-m'): cfg = GitConfigParser(CURRENT_BRANCH) cfg.read() CC_DIR = path(cfg.get(CFG_CC)) -DEBUG = cfg.getCore('debug', True) +DEBUG = str(cfg.getCore('debug', True)) == str(True) CC_TAG = CURRENT_BRANCH + '_cc' CI_TAG = CURRENT_BRANCH + '_ci' users = get_users_module(cfg.getUsersModulePath())