private static void ShutdownGit(GitRepositoryFolder repositoryFolder) { string path = repositoryFolder.GetAbsolutePath(); var git = NGit.Api.Git.Open(path); git.GetRepository().Close(); WindowCache.Reconfigure(new WindowCacheConfig()); }