Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into liveshare
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Nov 27, 2018
2 parents 35eee35 + abbbe57 commit 21f8854
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 1,015 deletions.

This file was deleted.

240 changes: 0 additions & 240 deletions Python/Product/AnacondaInstallLauncher/Program.cs

This file was deleted.

24 changes: 0 additions & 24 deletions Python/Product/AnacondaInstallLauncher/Properties/AssemblyInfo.cs

This file was deleted.

20 changes: 0 additions & 20 deletions Python/Product/Cookiecutter/Model/GitClientProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ public static IGitClient Create(Redirector redirector, string commonIdeFolderPat
gitExeFilePath = GetTeamExplorerGitFilePathFromIdeFolderPath(commonIdeFolderPath);
}

// Try to locate Team Explorer's git.exe using the Dev 15 install path from registry
// (for tests with no running instance of VS, or when running in Dev 14)
if (!File.Exists(gitExeFilePath)) {
gitExeFilePath = GetTeamExplorerGitFilePathFromRegistry();
}

// Just use git.exe, and it will work if it's in PATH
// If it's not, the error will be output in redirector at time of use
if (!File.Exists(gitExeFilePath)) {
Expand All @@ -50,20 +44,6 @@ private static string GitExecutableName {
}
}

private static string GetTeamExplorerGitFilePathFromRegistry() {
try {
using (var key = Registry.LocalMachine.OpenSubKey(@"Software\\Microsoft\VisualStudio\SxS\VS7")) {
var installRoot = (string)key.GetValue(AssemblyVersionInfo.VSVersion);
if (installRoot != null) {
return GetTeamExplorerGitFilePathFromIdeFolderPath(Path.Combine(installRoot, @"Common7\IDE"));
}
}
} catch (Exception e) when (!e.IsCriticalException()) {
}

return null;
}

private static string GetTeamExplorerGitFilePathFromIdeFolderPath(string ideFolderPath) {
// git.exe is in a folder path with a symlink to the actual extension dir with random name
var gitFolder = Path.Combine(ideFolderPath, @"CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin");
Expand Down
6 changes: 0 additions & 6 deletions Python/Product/EnvironmentsListHost/App.config

This file was deleted.

Loading

0 comments on commit 21f8854

Please sign in to comment.