summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-03-08 22:49:56 +0100
committerOliver Poignant <oliver@poignant.se>2016-03-08 22:49:56 +0100
commit045e34c3b75543e26460918079bbdd7991039ec2 (patch)
tree2f7097bac46885083ee08748b475f797f9e9eba3 /gitautodeploy/gitautodeploy.py
parent2f1f3ac55934965d0a82db907a47081e3c3fa4fc (diff)
downloadGit-Auto-Deploy-045e34c3b75543e26460918079bbdd7991039ec2.zip
Git-Auto-Deploy-045e34c3b75543e26460918079bbdd7991039ec2.tar.gz
Git-Auto-Deploy-045e34c3b75543e26460918079bbdd7991039ec2.tar.bz2
Fix issue when running without config file
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index 7191b8c..f7008ac 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -176,6 +176,9 @@ class GitAutoDeploy(object):
if 'pidfilepath' in self._config:
self._config['pidfilepath'] = os.path.expanduser(self._config['pidfilepath'])
+ if 'repositories' not in self._config:
+ self._config['repositories'] = []
+
for repo_config in self._config['repositories']:
# Setup branch if missing