title: git server side 'update' hook in bitbucket
body: <p>I'm looking for way to create a git server side push hook (will be used to enforce referencing JIRA ticket number in each commit message). </p>
  
  <p>According to <a href="http://git-scm.com/book/en/Customizing-Git-Git-Hooks" rel="nofollow noreferrer">pro git - git hooks</a>, the git hook to use on the server side is 'update', which exists on .git/hooks dir.
  Since I'm using BitBucket for git hosting, I need to somehow send this file to the .git/hooks dir in the site.</p>
  
  <p>Using <a href="https://confluence.atlassian.com/display/BITBUCKET/Managing+Bitbucket+Services" rel="nofollow noreferrer">BitBucket services</a> will not be suitable, since they are 'post-receive' hooks, so there's no point in using existing or writing my own broker, therefore <a href="https://stackoverflow.com/questions/9107320/create-a-bitbucket-git-commit-hook">this question</a> doesn't give me a proper solution.</p>