{"thread":{"id":"19837","subject":"[PATCH QGit] Fix \"Save patch...\" when selected directory name has spaces","startedAt":"2009-06-17T10:00:11Z","lastAt":"2009-06-17T10:00:11Z","messageCount":1,"participants":["Marco Costalba"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"116460","messageId":"e5bfff550906170300r34000049o50ab107071cb7b2f@mail.gmail.com","threadId":"19837","inReplyTo":null,"subject":"[PATCH QGit] Fix \"Save patch...\" when selected directory name has spaces","fromName":"Marco Costalba","fromEmail":"mcostalba@gmail.com","sentAt":"2009-06-17T10:00:11Z","receivedAt":"2009-06-17T10:00:11Z","isPatch":true,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"Bug spotted by Markus Heidelberg.\n\nSigned-off-by: Marco Costalba <mcostalba@gmail.com>\n---\n src/git.cpp |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/src/git.cpp b/src/git.cpp\nindex 357383d..bf1a9d5 100644\n--- a/src/git.cpp\n+++ b/src/git.cpp\n@@ -1569,7 +1569,7 @@ bool Git::formatPatch(SCList shaList, SCRef\ndirPath, SCRef remoteDir) {\n \tif (remote)\n \t\trunCmd.append(\" --keep-subject\");\n\n-\trunCmd.append(\" -o \" + dirPath);\n+\trunCmd.append(\" -o \" + quote(dirPath));\n \tif (!FPOpt.isEmpty())\n \t\trunCmd.append(\" \" + FPOpt.trimmed());\n\n-- \n1.6.1.9.g97c34\n"}]}