title: Git init: fatal: could not set 'core.filemode' to 'false'
body: <p>Using Team City to check out from a Git Repo. (Gitlabs if it matters)</p>
  
  <p>Start with Empty build directory.  Get this error:</p>
  
  <p>fatal: could not set 'core.filemode' to 'false'</p>
  
  <p>(Running on a Windows machine, if that matters)</p>
  
  <p>The user that Team City is running on was changed to an Admin just in case.</p>
  
  <p>The .Git directory is not a valid Repo when this command exits.</p>
  
  <p>Wiping the entire 'work' directory doesn't help.</p>
  
  <p>It randomly comes and goes... </p>
  
  <p>AND this: 
  git config --global --replace-all core.fileMode false</p>
  
  <p>Does nothing useful - with or without the --replace-all, and run as admin, or another user (if you change 'false' to 'true' you get the same error, if you change it to 'falseCD' it changes the error to that being an invalid value - so clearly, it is changing it.</p>
  
  <p>Anyone got any ideas?</p>