From 3558f32f1f5fdb3d566e39f6e07cd3f97d124da6 Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Wed, 25 Jan 2012 23:48:24 +0000 Subject: 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 0bf2625..b951ce5 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: -- cgit v0.10.2-6-g49f6