threads / patch / 19837

patchFix "Save patch..." when selected directory name has spaces

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

## tl;dr

One message between Jun 17, 2009 and Jun 17, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Marco Costalba· Jun 17, 2009, 10:00 UTC · lore
Bug spotted by Markus Heidelberg.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
---
 src/git.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to src/git.cpp +1 −1
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

← back to recent threads