diff options
Diffstat (limited to 'gitautodeploy/cli/config.py')
-rw-r--r-- | gitautodeploy/cli/config.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gitautodeploy/cli/config.py b/gitautodeploy/cli/config.py index 302bcae..b23135f 100644 --- a/gitautodeploy/cli/config.py +++ b/gitautodeploy/cli/config.py @@ -246,16 +246,6 @@ def init_config(config): for repo_config in config['repositories']: - # Only clone repositories with a configured path - if 'url' not in repo_config: - logger.critical("Repository has no configured URL") - return 1 - - # Only clone repositories with a configured path - if 'path' not in repo_config: - logger.critical("Repository has no configured path") - return 2 - # Setup branch if missing if 'branch' not in repo_config: repo_config['branch'] = "master" @@ -311,7 +301,7 @@ def init_config(config): filter['pull_request'] = True - return 0 + return config def get_repo_config_from_environment(): """Look for repository config in any defined environment variables. If @@ -342,4 +332,4 @@ def get_repo_config_from_environment(): if 'GAD_REPO_DEPLOY' in os.environ: repo_config['deploy'] = os.environ['GAD_REPO_DEPLOY'] - return repo_config + return repo_config
\ No newline at end of file |