title: How can I copy files from a Stash repository after a Stash merge
body: <p>I read that there are no post-merge hooks available in Atlassian Stash per <a href="https://answers.atlassian.com/questions/130202/post-hooks-unsuccessfully-triggered-after-clicking-merge-button-in-a-pull-request" rel="nofollow">this article</a>.  My bare Stash repository is outside the document tree and I'd like for it to copy the working directory into a directory in the document root after a merge has completed in Stash.  I know that bare repositories don't have working directories but I saw a git command that utilized --work-tree and --git-dir on a bare repository to check out the files into another directory.  <a href="https://www.youtube.com/watch?v=fPqYatEGjfc" rel="nofollow">See here</a> - pause at 11:43</p>
  
  <p>The referenced article also mentioned something about the Stash SDK but I didn't know if this would allow me to extract the working directory from the bare repository.  This seemed like something Git would need to handle.</p>
  
  <p>If anyone has any suggestions on accomplishing this through Stash-available hooks, I'd appreciate it.  Certainly not opposed to accomplishing through other means, as well.</p>
  
  <p>Thank you</p>