diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-03-08 22:49:56 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-03-08 22:49:56 +0100 |
commit | 045e34c3b75543e26460918079bbdd7991039ec2 (patch) | |
tree | 2f7097bac46885083ee08748b475f797f9e9eba3 /gitautodeploy/gitautodeploy.py | |
parent | 2f1f3ac55934965d0a82db907a47081e3c3fa4fc (diff) | |
download | Git-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.py | 3 |
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 |