Skip to content

Commit e6b711f

Browse files
committed
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 <[email protected]>
1 parent 81b462a commit e6b711f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/fast-import/git-p4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ class P4Submit(Command):
391391
system(applyPatchCmd)
392392

393393
for f in filesToAdd:
394-
system("p4 add %s" % f)
394+
system("p4 add \"%s\"" % f)
395395
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)
398398

399399
logMessage = ""
400400
if not self.directSubmit:

0 commit comments

Comments
 (0)