Skip to content

Commit

Permalink
Merge pull request #1679 from rstudio/bugfix/vcs-executable-paths
Browse files Browse the repository at this point in the history
resolve aliased vcs paths from client
  • Loading branch information
jmcphers committed Oct 26, 2017
2 parents 6f9f8f0 + 5f77b25 commit 5f19c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cpp/session/modules/SessionWorkbench.cpp
Expand Up @@ -431,19 +431,19 @@ Error setPrefs(const json::JsonRpcRequest& request, json::JsonRpcResponse*)
userSettings().beginUpdate();
userSettings().setVcsEnabled(vcsEnabled);

FilePath gitExePath(gitExe);
FilePath gitExePath = module_context::resolveAliasedPath(gitExe);
if (gitExePath == git::detectedGitExePath())
userSettings().setGitExePath(FilePath());
else
userSettings().setGitExePath(gitExePath);

FilePath svnExePath(svnExe);
FilePath svnExePath = module_context::resolveAliasedPath(svnExe);
if (svnExePath == svn::detectedSvnExePath())
userSettings().setSvnExePath(FilePath());
else
userSettings().setSvnExePath(svnExePath);

FilePath terminalFilePath(terminalPath);
FilePath terminalFilePath = module_context::resolveAliasedPath(terminalPath);
if (terminalFilePath == detectedTerminalPath())
userSettings().setVcsTerminalPath(FilePath());
else
Expand Down

0 comments on commit 5f19c80

Please sign in to comment.