git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Jun 17, 2009, 10:00 UTC
Message-ID
<e5bfff550906170300r34000049o50ab107071cb7b2f@mail.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
Message 1 of 1 in “Fix "Save patch..." when selected directory name has spaces”
  1. Fix "Save patch..." when selected directory name has spacesMarco Costalba, Jun 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.