From: Benjamin C Meyer Date: Fri, 04 Jun 2010 15:53:20 GMT Subject: [PATCH] Put quotes around branch names to prevent special characters from being interpreted by the shell. Message-ID: <1275666800-31852-1-git-send-email-bmeyer@rim.com> Perforce branch names with spaces (and other special characters) were causing issues. Signed-off-by: Benjamin C Meyer --- 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