title: Create a BitBucket git commit hook?
body: <p>I just ported over a repo from GitHub to BitBucket. Although it does many of necessities, I'm finding it surprisingly difficult to find documentation for creating a git commit hook.</p>
  
  <p>Originally I had a ruby app on a CentOS server that was triggered by a GitHub hook. Does anyone know how to achieve the same in the BitBucket environment?</p>
  
  <p>Thanks!</p>
  
  <p><strong>Edit:</strong> here's what the ruby app simply looks like if it helps:</p>
  
  <pre><code>post '/' do
    `rm -rf repofolder`
    `git clone https://user@bitbucket.org/user/repo.git`
    `sh fast_deploy.sh`
  end
  </code></pre>