Fix "compilation" :)
authorSimon Hausmann <hausmann@kde.org>
Sun, 1 Apr 2007 11:39:39 +0000 (13:39 +0200)
committerSimon Hausmann <hausmann@kde.org>
Sun, 1 Apr 2007 11:39:39 +0000 (13:39 +0200)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/git-p4
index 59c3edae1900c2e0823cf2a9eadd4fc7870b6743..04433373596e9eddfaced5f4da0aa3309deed4db 100755 (executable)
@@ -416,7 +416,7 @@ class GitSync(Command):
                 optparse.make_option("--changesfile", dest="changesFile"),
                 optparse.make_option("--silent", dest="silent", action="store_true"),
                 optparse.make_option("--known-branches", dest="knownBranches"),
-                optparse.make_option("--cache", dest="doCache", action="store_true"),
+                optparse.make_option("--data-cache", dest="dataCache", action="store_true"),
                 optparse.make_option("--command-cache", dest="commandCache", action="store_true")
         ]
         self.description = """Imports from Perforce into a git repository.\n
@@ -500,7 +500,7 @@ class GitSync(Command):
             if knownBranch:
                 continue
 
-            for branch in knownBranches:
+            for branch in self.knownBranches:
                 #if relativePath.startswith(branch):
                 if self.isSubPathOf(relativePath, branch):
                     if len(branches) == 0: