From: Pete Wyckoff Date: Wed, 25 Jan 2012 23:48:24 +0000 (+0000) Subject: git-p4: Change p4 command invocation X-Git-Tag: v1.7.10-rc0~127^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3558f32f1f5fdb3d566e39f6e07cd3f97d124da6;p=git.git git-p4: Change p4 command invocation Change p4 command invocation to avoid going through the shell. This allows names with spaces and wildcards to work. Signed-off-by: Pete Wyckoff Signed-off-by: Vitor Antunes Signed-off-by: Junio C Hamano --- diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 0bf262507..b951ce58b 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -1984,7 +1984,7 @@ class P4Sync(Command, P4UserMap): def importChanges(self, changes): cnt = 1 for change in changes: - description = p4Cmd("describe %s" % change) + description = p4Cmd(["describe", str(change)]) self.updateOptionDict(description) if not self.silent: