aboutsummaryrefslogtreecommitdiffstats
path: root/webhook.py
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-09-26 14:29:46 +0200
committerlookshe <github@lookshe.org>2016-09-26 15:54:31 +0200
commit00a62227354d9dc674cef7bf10f89c7c3ac59a96 (patch)
treecf4811fe336a74ff36492f413549e491e89891dd /webhook.py
parentbfb46621b42cc60cc5433e87bb954e02db187719 (diff)
changed user to used one and disabled deleting of branches
Diffstat (limited to 'webhook.py')
-rwxr-xr-xwebhook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webhook.py b/webhook.py
index 0b3f11f..6406c82 100755
--- a/webhook.py
+++ b/webhook.py
@@ -25,7 +25,7 @@
# This is the CGI script receiving GitHub webhooks.
# You may have to change the location of the "main" webhook script:
-webhook_core = "/home/git/git-mirror/webhook-core.py"
+webhook_core = "/home/gitosis/git-mirror/webhook-core.py"
# Do NOT change anything below here
import urllib.request, urllib.parse, json, os, sys
@@ -41,4 +41,4 @@ githubEvent = os.getenv('HTTP_X_GITHUB_EVENT')
githubSignature = os.getenv('HTTP_X_HUB_SIGNATURE')
# execute the actual script
-os.execlp("sudo", "sudo", "-n", "-u", "git", webhook_core, repository, str(githubEvent), str(githubSignature))
+os.execlp("sudo", "sudo", "-n", "-u", "gitosis", webhook_core, repository, str(githubEvent), str(githubSignature))