changed user to used one and disabled deleting of branches
This commit is contained in:
parent
bfb46621b4
commit
00a6222735
2 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ class Repo:
|
|||
else:
|
||||
# ref does not exist anymore. delete it.
|
||||
assert local_sha != git_nullsha, "Why didn't we bail out earlier if there is nothing to do...?"
|
||||
git.update_ref("-d", ref, local_sha) # this checks that the old value is still local_sha
|
||||
#git.update_ref("-d", ref, local_sha) # this checks that the old value is still local_sha
|
||||
# Now run the post-receive hooks. This will *also* push the changes to all mirrors, as we
|
||||
# are one of these hooks!
|
||||
os.putenv("GIT_MIRROR_SOURCE", mirror) # tell ourselves which repo we do *not* have to update
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue