title: How to compute the git hash-object of a directory?
body: <p>Does anyone have an example of using git hash-object on a directory?  It works easily enough on a file* but doesn't work as I'd expect for a directory**</p>
  
  <pre><code>*:  git hash-object c:\somefile.txt
  **: git hash-object -t tree c:\somedirectory
  </code></pre>
  
  <p>When I try to use hash-object with the directory, it complains "fatal: Cannot open 'C:\someDirectory': Permission denied"</p>