git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Put quotes around branch names to prevent special characters from being interpreted by the shell.
@ 2010-06-04 15:53 Benjamin C Meyer
  2010-06-06 21:55 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin C Meyer @ 2010-06-04 15:53 UTC (permalink / raw)
  To: git; +Cc: Benjamin C Meyer

Perforce branch names with spaces (and other special characters) were causing issues.

Signed-off-by: Benjamin C Meyer <bmeyer@rim.com>
---
 contrib/fast-import/git-p4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index c1ea643..d42b865 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -1228,7 +1228,7 @@ class P4Sync(Command):
         lostAndFoundBranches = set()
 
         for info in p4CmdList("branches"):
-            details = p4Cmd("branch -o %s" % info["branch"])
+            details = p4Cmd("branch -o \"%s\"" % info["branch"])
             viewIdx = 0
             while details.has_key("View%s" % viewIdx):
                 paths = details["View%s" % viewIdx].split(" ")
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-07  6:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 15:53 [PATCH] Put quotes around branch names to prevent special characters from being interpreted by the shell Benjamin C Meyer
2010-06-06 21:55 ` Jeff King
2010-06-07  5:10   ` Jay Soffian
2010-06-07  5:48     ` Ævar Arnfjörð Bjarmason
2010-06-07  6:01       ` Ian Ward Comfort
2010-06-07  6:01       ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).