Re: adding environment variable to be used by post-receive custom hook

2015-06-21 Thread tombert
Usually a child process inherits the whole environment of its parent. The hook you are running is a child process spawned from a parent, that spawns another child process. Since parents do not inherit from childs you won't get this to work. You only chance is reading the commit hash and thus ex

Re: adding environment variable to be used by post-receive custom hook

2015-06-18 Thread Austin Mico
Yes, that is how I added a custom hook. My problem was I needed to pass the username to the custom hook which is needed by another component. What I did which I think is very ugly way is on the gitlab-shell custom script, the one which runs the custom hooks, I write the username in a file while

Re: adding environment variable to be used by post-receive custom hook

2015-05-27 Thread Karen Carias
Hi Austin. Here's how to configure custom git hooks http://doc.gitlab.com/ce/hooks/custom_hooks.html -- 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

adding environment variable to be used by post-receive custom hook

2015-05-21 Thread Austin Mico
I need to add an environment variable to my post-receive custom hook. Please help. -- 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.c