diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-08-26 23:06:19 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-08-26 23:06:19 +0200 |
commit | 52a1ed53d3790733d16c6f3dde6990c27bebd267 (patch) | |
tree | 5f6abcaad3a34aa9bace3d1f1abe175202a4091c /gitautodeploy/gitautodeploy.py | |
parent | 4a40a946b8ff0da5d119fce57d872b597b8377b3 (diff) | |
parent | 9f08e1300d43261ca5d57d56ce657cbeef6e056f (diff) | |
download | Git-Auto-Deploy-52a1ed53d3790733d16c6f3dde6990c27bebd267.zip Git-Auto-Deploy-52a1ed53d3790733d16c6f3dde6990c27bebd267.tar.gz Git-Auto-Deploy-52a1ed53d3790733d16c6f3dde6990c27bebd267.tar.bz2 |
Merge branch 'development'
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r-- | gitautodeploy/gitautodeploy.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py index 21f1f16..8347d6a 100644 --- a/gitautodeploy/gitautodeploy.py +++ b/gitautodeploy/gitautodeploy.py @@ -110,18 +110,9 @@ class GitAutoDeploy(object): continue if os.path.isdir(repo_config['path']) and os.path.isdir(repo_config['path']+'/.git'): - logger.debug("Repository %s already present" % repo_config['url']) - continue - - logger.info("Repository %s not present and needs to be cloned" % repo_config['url']) - - # Clone repository - ret = GitWrapper.clone(url=repo_config['url'], branch=repo_config['branch'], path=repo_config['path']) - - if ret == 0 and os.path.isdir(repo_config['path']): - logger.info("Repository %s successfully cloned" % repo_config['url']) + GitWrapper.init(repo_config) else: - logger.error("Unable to clone %s branch of repository %s" % (repo_config['branch'], repo_config['url'])) + GitWrapper.clone(repo_config) def ssh_key_scan(self): import re |