summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-07-08 15:11:03 +0200
committerTorben <torben.letorbi@gmail.com>2016-07-08 15:11:03 +0200
commit2e25cb624a41143bebaea6ec59cce2a2b3b3c3a3 (patch)
tree1c90c76c9abab6b129bba0b8bfebedb2ce93ec07 /gitautodeploy/gitautodeploy.py
parent28094bced35e36bc3f16daeb27ba0804ef1c733f (diff)
downloadGit-Auto-Deploy-2e25cb624a41143bebaea6ec59cce2a2b3b3c3a3.zip
Git-Auto-Deploy-2e25cb624a41143bebaea6ec59cce2a2b3b3c3a3.tar.gz
Git-Auto-Deploy-2e25cb624a41143bebaea6ec59cce2a2b3b3c3a3.tar.bz2
Add logging and unset GIT_DIR to git clone method
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index af737cc..095401a 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -116,11 +116,7 @@ class GitAutoDeploy(object):
else:
# Clone repository
logger.info("Repository %s not present and needs to be cloned" % repo_config['url'])
- 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'])
- 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