DORMANTno replies

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

From: Marco Costalba <hidden>
Date: 2016-06-15 22:46:57
Subsystem: the rest · Maintainer: Linus Torvalds

Bug spotted by Markus Heidelberg.

Signed-off-by: Marco Costalba <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help