title: Calling 'git pull' from a git post-update hook
body: <p>I have a central git repo set up using gitolite.</p>
  
  <p>I want to set up a hook such that whenever a user pushes to the repo, it performs a pull elsewhere followed by some automated testing.</p>
  
  <p>So far, I only want to it perform the pull.</p>
  
  <p>In the hooks directory I created the following script names post-update:</p>
  
  <pre><code>#!/bin/sh  
  cd /home/git/www/epicac
  git pull
  </code></pre>
  
  <p>When I invoke this script using ./post-update, it does exactly what I want.</p>
  
  <p>However, whenever it's invoked automatically as I hook, I get: fatal: Not a git repository: '.'</p>
  
  <p>Any idea why this might be happening?</p>