# [PATCH QGit] Fix "Save patch..." when selected directory name has spaces

1 messages from 2009-06-17 to 2009-06-17. Participants: Marco Costalba.
Thread: https://gitlist.dev/t/19837

## Marco Costalba, 2009-06-17 10:00

Subject: [PATCH QGit] Fix "Save patch..." when selected directory name has spaces
Message-ID: <e5bfff550906170300r34000049o50ab107071cb7b2f@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550906170300r34000049o50ab107071cb7b2f%40mail.gmail.com

```
Bug spotted by Markus Heidelberg.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
---
 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

```
