On 02/25/2015 05:09 AM, Maneesh M P wrote: > I was trying get post-receive hook work through custom hooks but it > seems like not working. pre-recieve hooks seems to be working just fine. > > Here is what i have tried > > 1. cd /var/opt/gitlab/git-data/repositories/star/champ.git/custom_hooks > 2. Added the below lines in post receive file, this is to push any > changes to pushed to camp.git repository in gitlab server to a different > server > vi post-receive > #!/usr/bin/env ruby > system 'git push -f origin --mirror' > 3.Cloned the repository and did a push, but the changes are not getting > pushed to the remote server. Anyone has any idea how to get this working ? > > > PS: same thing if i add in pre-receive hook, it works just fine. but > pre-receive hook pushes changes to remote server before the gitlab > server accepts the changes. so I can't use this > Also, If i remove the soft link between hooks and > /opt/gitlab/embedded/service/gitlab-shell/hooks then put a normal > post-receive hook file inside hooks directory, it works just fine. > Thanks, > Maneesh > >
This is a known bug fixed in 7.8.1 :) https://about.gitlab.com/2015/02/24/gitlab-7-8-1-released/ -- GPG : 0x3A7DDABC985EDC6E Blog: http://axilleas.me -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/54EDE213.80509%40gmail.com. For more options, visit https://groups.google.com/d/optout.