diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-05-11 19:20:50 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-05-11 19:20:50 +0200 |
commit | 799fbbd696103593247b6325e0c5205fdb49da08 (patch) | |
tree | 9f390cb66d34a79137f49abc3da245046f2c5a37 /gitautodeploy/cli/config.py | |
parent | f0d5c7a9bfeb735835cdd263f8da6f0b95500982 (diff) | |
download | Git-Auto-Deploy-799fbbd696103593247b6325e0c5205fdb49da08.zip Git-Auto-Deploy-799fbbd696103593247b6325e0c5205fdb49da08.tar.gz Git-Auto-Deploy-799fbbd696103593247b6325e0c5205fdb49da08.tar.bz2 |
Fix for #98
Diffstat (limited to 'gitautodeploy/cli/config.py')
-rw-r--r-- | gitautodeploy/cli/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitautodeploy/cli/config.py b/gitautodeploy/cli/config.py index 8109b34..d482621 100644 --- a/gitautodeploy/cli/config.py +++ b/gitautodeploy/cli/config.py @@ -254,7 +254,7 @@ def init_config(config): repo_config['deploy_commands'] = [] # Check if any global pre deploy commands is specified - if 'global_deploy' in config and len(config['global_deploy'][0]) is not 0: + if 'global_deploy' in config and len(config['global_deploy']) > 0 and len(config['global_deploy'][0]) is not 0: repo_config['deploy_commands'].insert(0, config['global_deploy'][0]) # Check if any repo specific deploy command is specified @@ -262,7 +262,7 @@ def init_config(config): repo_config['deploy_commands'].append(repo_config['deploy']) # Check if any global post deploy command is specified - if 'global_deploy' in config and len(config['global_deploy'][1]) is not 0: + if 'global_deploy' in config and len(config['global_deploy']) > 1 and len(config['global_deploy'][1]) is not 0: repo_config['deploy_commands'].append(config['global_deploy'][1]) # If a repository is configured with embedded credentials, we create an alternate URL |