sboulema / TGit

Control TortoiseGit from within Visual Studio
MIT License
31 stars 9 forks source link

VS2022 Preview 3: "fatal: this operation must be run in a work tree" #72

Open hajokirchhoff opened 3 years ago

hajokirchhoff commented 3 years ago

(thanks for adding VS2022 Preview Support) I just installed TGit in VS2022. Installation went fine. When I enabled the TGit Toobar, I immediately got TGit error fatal: this operation must be run in a work tree in an endless loop. When I click "ok", the message closes and immediately pops up again.

BTW, my solution file is not in the root of the git repository, but in a subfolder instead. I am mentioning this because with VS 2019 some git operations use the wrong directory (git log). They use the directory of the solution and only show part of the git repository. Perhaps this is the cause here. The git directory is not the same as the sln directory. Just a guess...