From: Marco Costalba Date: Wed, 17 Jun 2009 10:00:11 GMT Subject: [PATCH QGit] Fix "Save patch..." when selected directory name has spaces Message-ID: Bug spotted by Markus Heidelberg. Signed-off-by: Marco Costalba --- src/git.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/git.cpp b/src/git.cpp index 357383d..bf1a9d5 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -1569,7 +1569,7 @@ bool Git::formatPatch(SCList shaList, SCRef dirPath, SCRef remoteDir) { if (remote) runCmd.append(" --keep-subject"); - runCmd.append(" -o " + dirPath); + runCmd.append(" -o " + quote(dirPath)); if (!FPOpt.isEmpty()) runCmd.append(" " + FPOpt.trimmed()); -- 1.6.1.9.g97c34