title: How to read the content of a file in a post-receive hook?
body: <p>I'm building a hook for the post-receive and I need to read the content of a file (VERSION). This file can change along with the commit (new version) so I can't read an existing repo.</p>
  
  <p>I tried this method :</p>
  
  <pre><code>git cat-file blob $(git ls-files -s VERSION | awk '{print $2}')
  </code></pre>
  
  <p>But in the hook folder, it doesn't work.</p>
  
  <p>How can I do this?</p>