summaryrefslogtreecommitdiffstats
path: root/gitautodeploy
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-08 00:08:09 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-08 00:08:09 +0200
commitb60ff44438d884b200d70de9c45fec5a15f2c0fa (patch)
treeaf9230d6223d6f6849b0f86ff7b5bef8b777a85b /gitautodeploy
parent6aa6dd514d5b80c9f36fec6c56d4094fd182de61 (diff)
downloadGit-Auto-Deploy-b60ff44438d884b200d70de9c45fec5a15f2c0fa.zip
Git-Auto-Deploy-b60ff44438d884b200d70de9c45fec5a15f2c0fa.tar.gz
Git-Auto-Deploy-b60ff44438d884b200d70de9c45fec5a15f2c0fa.tar.bz2
Updated docs
Diffstat (limited to 'gitautodeploy')
-rw-r--r--gitautodeploy/httpserver.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gitautodeploy/httpserver.py b/gitautodeploy/httpserver.py
index 90fc72c..4166458 100644
--- a/gitautodeploy/httpserver.py
+++ b/gitautodeploy/httpserver.py
@@ -155,8 +155,9 @@ class WebhookRequestHandler(BaseHTTPRequestHandler):
logger.error("Unable to recognize request origin. Don't know how to handle the request.")
return
-
def process_repositories(self, repo_configs, ref, action, request_body):
+ """Verify that the suggested repositories has matching settings and
+ issue git pull and/or deploy commands."""
import os
import time
import logging
@@ -222,10 +223,6 @@ class WebhookRequestHandler(BaseHTTPRequestHandler):
# Keep on attempting to obtain the status_running lock until we succeed
time.sleep(5)
- #n = 4
- #while 0 < n and 0 != GitWrapper.pull(repo_config):
- # n -= 1
-
n = 4
res = None
while n > 0: