summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-07-08 14:54:06 +0200
committerTorben <torben.letorbi@gmail.com>2016-07-08 14:54:06 +0200
commit28094bced35e36bc3f16daeb27ba0804ef1c733f (patch)
tree8aba56b735da96d5e03005efd7eb5aac0dac7192
parent651a55b91935b65efeac7a845c1dea5f7ec944a8 (diff)
downloadGit-Auto-Deploy-28094bced35e36bc3f16daeb27ba0804ef1c733f.zip
Git-Auto-Deploy-28094bced35e36bc3f16daeb27ba0804ef1c733f.tar.gz
Git-Auto-Deploy-28094bced35e36bc3f16daeb27ba0804ef1c733f.tar.bz2
Fix double result messages after pull
-rw-r--r--gitautodeploy/gitautodeploy.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index 189a9df..af737cc 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -112,11 +112,7 @@ class GitAutoDeploy(object):
if os.path.isdir(repo_config['path']) and os.path.isdir(repo_config['path']+'/.git'):
# Pull repository
logger.debug("Repository %s already present and will be updated" % repo_config['url'])
- ret = GitWrapper.pull(repo_config)
- if ret == 0:
- logger.info("Repository %s successfully pulled" % repo_config['url'])
- else:
- logger.error("Unable to pull %s branch of repository %s" % (repo_config['branch'], repo_config['url']))
+ GitWrapper.pull(repo_config)
else:
# Clone repository
logger.info("Repository %s not present and needs to be cloned" % repo_config['url'])