title: How do I get TeamCity to create the .git directory when cloning a repo for build?
body: <p>I'm trying to run a custom command in my MSBuild file; it basically runs 'git log -10' and stores that commit info into a text file.</p>
  
  <p>The problem is, when I try to run the build, it errors saying "fatal: Not a git repository".  So I checked TeamCity's work directory for my project, and there is no .git directory!</p>
  
  <p>Why doesn't TeamCity create the .git directory when it clones the repository?  Is there a way to enable this?</p>
  
  <p>edit: TeamCity version is 7.1.2; I'll try updating to 8.0.1 to see if there is an option available for this.</p>