title: Cloning a single path of a bare git repository
body: <p>I am trying to add a post-commit hook to a bare repository, such that whenever a commit is made the changed files are automatically installed in a (hardcoded) directory.</p>
  
  <p>Is there a way to fetch a single file from the repository?</p>
  
  <p>git-clone does not appear to allow for specifying a path, and any other commands that I found (git-fetch, git-pull) seem to require an existing local git repository to work.</p>
  
  <p>Is there a way to do this?</p>