Skip to content

Commit

Permalink
set working directory for svn operations to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Nov 25, 2012
1 parent 3e991b8 commit 13f2236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cpp/session/modules/SessionSVN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ Error runSvn(const ShellArgs& args,
bool redirectStdErrToStdOut,
core::system::ProcessResult* pResult)
{
return runSvn(args, FilePath(), redirectStdErrToStdOut, pResult);
FilePath workingDir;
if (!s_workingDir.empty())
workingDir = s_workingDir;

return runSvn(args, workingDir, redirectStdErrToStdOut, pResult);
}

Error runSvn(const ShellArgs& args,
Expand Down

0 comments on commit 13f2236

Please sign in to comment.