summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSimon Hausmann <simon@lst.de>2007-06-11 21:40:25 (GMT)
committerSimon Hausmann <simon@lst.de>2007-06-11 21:41:41 (GMT)
commite6b711f00e4578eb4b2127af12f73a5fa438f948 (patch)
tree3e283ed9f20544d6309033a8c39808b1cd24ec1f /contrib
parent81b462a629c2feff9ab1dc43148643aad9571271 (diff)
downloadgit-e6b711f00e4578eb4b2127af12f73a5fa438f948.zip
git-e6b711f00e4578eb4b2127af12f73a5fa438f948.tar.gz
git-e6b711f00e4578eb4b2127af12f73a5fa438f948.tar.bz2
git-p4 submit: Fix missing quotes around p4 commands to make them work with spaces in filenames
Noticed by Alex Riesen Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/git-p46
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 6c19929..21f9ba7 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -391,10 +391,10 @@ class P4Submit(Command):
system(applyPatchCmd)
for f in filesToAdd:
- system("p4 add %s" % f)
+ system("p4 add \"%s\"" % f)
for f in filesToDelete:
- system("p4 revert %s" % f)
- system("p4 delete %s" % f)
+ system("p4 revert \"%s\"" % f)
+ system("p4 delete \"%s\"" % f)
logMessage = ""
if not self.directSubmit: