After dotnet/Nerdbank.GitVersioning#393 upgraded libgit2sharp from 0.27.0-preview-0007 to 0.27.0-preview-0024, tests and scenarios started failing because libgit2sharp's dirty checks reported an uncommitted file with a _git2_ prefix. It actually looks like a directory junction. It's causing Repository.RetrieveStatus().IsDirty to return true and the RepositoryStatus.Untracked collection to be non-empty.
If this new _git2_ directory is a required temporary location for opening the repo, can libgit2sharp be taught to ignore it for all such purposes?