summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-07-08 18:23:26 +0200
committerTorben <torben.letorbi@gmail.com>2016-07-08 18:23:26 +0200
commit0526f410b5dad1f97efc7c651e3afa55c831fb03 (patch)
tree6d27dddd82d85652e18ed689e452495d11173395 /gitautodeploy/gitautodeploy.py
parent7720ec0cf45bb0b44e3e5b56116545237918d448 (diff)
downloadGit-Auto-Deploy-0526f410b5dad1f97efc7c651e3afa55c831fb03.zip
Git-Auto-Deploy-0526f410b5dad1f97efc7c651e3afa55c831fb03.tar.gz
Git-Auto-Deploy-0526f410b5dad1f97efc7c651e3afa55c831fb03.tar.bz2
Initialize repo on start; Use 'reset --hard' for update again
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 2a3b27e..4cdfa0d 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -98,12 +98,8 @@ class GitAutoDeploy(object):
for repo_config in self._config['repositories']:
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'])
- GitWrapper.pull(repo_config)
+ GitWrapper.init(repo_config)
else:
- # Clone repository
- logger.info("Repository %s not present and needs to be cloned" % repo_config['url'])
GitWrapper.clone(repo_config)
def ssh_key_scan(self):