Skip to content

Commit

Permalink
Use absolute path to git when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Sep 27, 2011
1 parent 061abbb commit 32f5db5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cpp/session/modules/SessionSourceControl.cpp
Expand Up @@ -269,7 +269,13 @@ std::vector<PidType> s_pidsToTerminate_;

ShellCommand git()
{
return ShellCommand("git");
if (!s_gitBinDir.empty())
{
FilePath fullPath = FilePath(s_gitBinDir).childPath("git");
return ShellCommand(fullPath.absolutePath());
}
else
return ShellCommand("git");
}

ShellCommand svn()
Expand Down

0 comments on commit 32f5db5

Please sign in to comment.