Specifying --detect-branches is now only needed for the initial clone/sync.
[gitweb.git] / contrib / fast-import / git-p4
index bcea4cf3deac1c5eeb21c5468b574a043611cb27..d4bf67333fc7139618b257122362cbca814d87b5 100755 (executable)
@@ -719,6 +719,9 @@ class P4Sync(Command):
         self.initialParents = {}
 
         self.listExistingP4GitBranches()
+        if len(self.p4BranchesInGit) > 1:
+            print "Importing from/into multiple branches"
+            self.detectBranches = True
 
         if self.syncWithOrigin and gitBranchExists("origin") and gitBranchExists("refs/remotes/p4/master") and not self.detectBranches:
             ### needs to be ported to multi branch import