Pass the right number of arguments to commit, fixes single-branch imports.
authorSimon Hausmann <hausmann@kde.org>
Mon, 19 Mar 2007 11:04:37 +0000 (12:04 +0100)
committerSimon Hausmann <hausmann@kde.org>
Mon, 19 Mar 2007 11:04:37 +0000 (12:04 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py

index a6dbd3b98dd33ffb62031649dbd2838d450456d5..9adb88fadeed0ae1ff744294c2d8a58118b368a8 100755 (executable)
@@ -330,7 +330,7 @@ def commit(details, files, branch, branchPrefix, parent, merged = ""):
         action = file["action"]
 
         if file["type"] == "apple":
-            print "\nfile %s is a strange apple file that forks. Ignoring!" %s path
+            print "\nfile %s is a strange apple file that forks. Ignoring!" % path
             continue
 
         if action == "delete":
@@ -608,7 +608,7 @@ else:
                         merged = "refs/heads/" + merged
                     commit(description, files, branch, branchPrefix, parent, merged)
             else:
-                commit(description, filesForCommit, branch, globalPrefix, initialParent)
+                commit(description, files, branch, globalPrefix, initialParent)
                 initialParent = ""
         except IOError:
             print gitError.read()