-
Notifications
You must be signed in to change notification settings - Fork 117
Post Receive URL not called on push #549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, we do need this call/trigger to kick-off the continues integration as well as to do deployments. |
Well it should work out of the box. You should have additional lines in |
"git push" does his regular job but without any additional lines. |
This is what you should get :
|
when I push back to the server the hooks-section is comletely missing:
The push command doesn't create any log file entry in my-redmine/logs/[production.log | git_hosting.log] In case it helps: this is what I see in the gitolite-log:
|
Any idea what the issue might be? |
Hi, after reviewing and comparing again the local setup with the setup instructions we still can't get the post receive urls working. |
Any update/suggestion? |
Hi! The hooks don't seem to be called. Check your Gitolite install, specially repositories hooks.
|
Hi, still no luck. Our hooks directory looks similar to yours: $ls -la /opt/gitolite/repositories/mainrepo/therepo.git/hooks/
total 48K
drwx------ 2 git git 4.0K Dec 4 16:05 .
drwx------ 7 git git 4.0K Jan 6 07:21 ..
-rwx------ 1 git git 452 Dec 4 07:19 applypatch-msg.sample
-rwx------ 1 git git 896 Dec 4 07:19 commit-msg.sample
lrwxrwxrwx 1 git git 40 Dec 4 16:05 lib -> /opt/gitolite/.gitolite/hooks/common/lib
lrwxrwxrwx 1 git git 49 Dec 4 16:05 post-receive -> /opt/gitolite/.gitolite/hooks/common/post-receive
lrwxrwxrwx 1 git git 51 Dec 4 16:05 post-receive.d -> /opt/gitolite/.gitolite/hooks/common/post-receive.d
-rwx------ 1 git git 189 Dec 4 07:19 post-update.sample
-rwx------ 1 git git 398 Dec 4 07:19 pre-applypatch.sample
-rwx------ 1 git git 1.7K Dec 4 07:19 pre-commit.sample
-rwx------ 1 git git 1.3K Dec 4 07:19 prepare-commit-msg.sample
-rwx------ 1 git git 1.4K Dec 4 07:19 pre-push.sample
-rwx------ 1 git git 4.8K Dec 4 07:19 pre-rebase.sample
lrwxrwxrwx 1 git git 43 Dec 4 16:05 update -> /opt/gitolite/.gitolite/hooks/common/update
-rwx------ 1 git git 3.6K Dec 4 07:19 update.sample |
is ruby installed for your git user? if not the ruby post-receive hook could not be called. For my requirements I have a non ruby hook, but if you install ruby for your git user, it should work anyway. |
Thanks for the tip. |
mh maybe you can write some output to the hook and if you push something to your repo this should be printed to the terminal where you push. |
I'm facing the same issue. Everything working as expected, except the hooks on push seem not to be called. Push output:
Redmine 3.2.0.stable |
Also, should the Hooks Url (in the blue badge, like But in the hooks dir inside the repository itself, it seems to miss the symlinks:
|
you did something wrong at the installation. normally there is a "post-receive -> /home/git/.gitolite ...." symlink for every project in your gitolite repository directory |
Oh, OK. I don't want to hijack this issue than, i'll figure it out. Thanks. |
Hi @madc it sounds like you're having the same issue I had. This is what I did to correct the issue #567 (comment) |
Thanks for the hint, but it was a much simpler issue. I set Works like a charm now. |
Hi,
I'm struggling to get Post Receive URLs working and not sure if it is a misconfiguration or misinterpretation of the documentation.
We want to configure a repository with an post receive url, so that a chosen URL gets called on pushes.
Here are some details of what I did so far and my setup:
Project Setup:
Git Hosting Setup:
Server/SW Setup:
Let me know if you need further details.
Thanks.
The text was updated successfully, but these errors were encountered: