Skip to content

Commit

Permalink
git-p4 submit: Fix missing quotes around p4 commands to make them wor…
Browse files Browse the repository at this point in the history
…k with spaces in filenames

Noticed by Alex Riesen

Signed-off-by: Simon Hausmann <simon@lst.de>
  • Loading branch information
Simon Hausmann committed Jun 11, 2007
1 parent 81b462a commit e6b711f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e6b711f

Please sign in to comment.