summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-08 01:16:55 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-08 01:16:55 +0200
commitae3c50f997427bc128ff303b4a3dbaea19c18fde (patch)
treea4214a3ce001ad0ce74e36608608086aa7e772eb /gitautodeploy/gitautodeploy.py
parentb60ff44438d884b200d70de9c45fec5a15f2c0fa (diff)
downloadGit-Auto-Deploy-ae3c50f997427bc128ff303b4a3dbaea19c18fde.zip
Git-Auto-Deploy-ae3c50f997427bc128ff303b4a3dbaea19c18fde.tar.gz
Git-Auto-Deploy-ae3c50f997427bc128ff303b4a3dbaea19c18fde.tar.bz2
Improved test case generation
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index 3b7660e..1a04b5a 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -98,6 +98,13 @@ class GitAutoDeploy(object):
for repo_config in self._config['repositories']:
# Only clone repositories with a configured path
+ if 'url' not in repo_config:
+ logger.critical("Repository has no configured URL")
+ self.close()
+ self.exit()
+ return
+
+ # Only clone repositories with a configured path
if 'path' not in repo_config:
logger.info("Repository %s will not be cloned (no path configured)" % repo_config['url'])
continue