diff options
author | Torben <torben.letorbi@gmail.com> | 2016-07-08 18:23:26 +0200 |
---|---|---|
committer | Torben <torben.letorbi@gmail.com> | 2016-07-08 18:23:26 +0200 |
commit | 0526f410b5dad1f97efc7c651e3afa55c831fb03 (patch) | |
tree | 6d27dddd82d85652e18ed689e452495d11173395 /gitautodeploy/gitautodeploy.py | |
parent | 7720ec0cf45bb0b44e3e5b56116545237918d448 (diff) | |
download | Git-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.py | 6 |
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): |