I've setup a Git server according to this page.
I've also incorporated a post-receive
hook according to this page.
I'm using GitHub for Windows to communicate between my local machine and the git repo.
My issue is that the post-receive
hook utilizes a variable found in git config user.asana-key. I've set that variable on my local machine. However, when I commit to the server repository, that value is empty.
I'm wondering if there's something specific I should be doing to send this variable along with the git commit so that the hook can read it?
And if there's someway to automate this to be sent with every single commit?
EDIT:
I have since learned that these config variables are never sent to the server with a commit normally. So my question at this point becomes is there a way to send these variables, or is there way inside the post-receive hook to set the key based on the user.email attached to the commit?