Just found some interesting hook here : https://github.com/Praqma/git-hooks
2015-03-02 10:17 GMT+01:00 tombert <[email protected]>: > Yes they can be *bash *too as a *custom_hooks*, but I had the following > problem: > > https://groups.google.com/forum/#!searchin/gitlabhq/custom_hooks/gitlabhq/bVt0JmX77Lw/nLD1whX8InEJ > So that's one reason why I stayed inside the main hook and not using > *custom_hooks*. > > See the *custom_hooks* here: > http://doc.gitlab.com/ce/hooks/custom_hooks.html > > I myself am a Ruby rooky, but by googling the most important things I made > my hook working. > Another problem could be how to find the current user pushing. I solved > this using the GitlabNet class (which is Ruby): > > require '/opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net' >> api = GitlabNet.new >> user = api.discover(key_id) > > > I do not know how to do that in bash. > > thomas > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/gitlabhq/e6b161c4-6b1a-4dce-95e7-f5f94e802a68%40googlegroups.com > <https://groups.google.com/d/msgid/gitlabhq/e6b161c4-6b1a-4dce-95e7-f5f94e802a68%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/CALyUpY1GeFw41x_%2B-28N34RbTPJM08YdRqEsq_0uM%3D6mNDG3WA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
