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>
Simon Hausmann committed
Jun 11, 2007 at 23:40 UTC
e6b711f00e4578eb4b2127af12f73a5fa438f948
1 file changed
+3
-3
contrib/fast-import/git-p4
+3
-3
@@ -391,10 +391,10 @@ class P4Submit(Command):
391
system(applyPatchCmd)
392
393
for f in filesToAdd:
394
- system("p4 add %s" % f)
394
+ system("p4 add \"%s\"" % f)
395
for f in filesToDelete:
396
- system("p4 revert %s" % f)
397
- system("p4 delete %s" % f)
396
+ system("p4 revert \"%s\"" % f)
397
+ system("p4 delete \"%s\"" % f)
398
399
logMessage = ""
400
if not self.directSubmit: