title: Visual Studio doesn't work with git worktree
body: <p>I have a local git repository and I use a git worktree hierarchy. So far any application I tried worked well with git worktrees, but Visual Studio complains, that the given directory is not a git repository. I can ensure the <code>.git</code> file inside the directory.</p>
  
  <p>According to <strong><a href="https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes-v15.5" rel="nofollow noreferrer">release notes</a></strong> and <strong><a href="https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-preview-relnotes-v15.5" rel="nofollow noreferrer">pages</a></strong> and <strong><a href="https://blogs.msdn.microsoft.com/devops/2017/12/08/new-git-features-in-vs2017-update-5/" rel="nofollow noreferrer">blog posts</a></strong> this feature was added in Visual Studio 2017, but for me even in VS 2019 it fails to load. Am I missing something?</p>
  
  <pre><code>Git failed with a fatal error.
  fatal: Not a git repository: C:\Users\stepehn\Desktop\foo
  </code></pre>