Don't attempt to set the initialParent on multi-branch imports (useless).
[gitweb.git] / contrib / fast-import / git-p4
index ba34f0a61f10aabf9ab8cf712d02bf3a15b33224..ff737d762cdddcbe80828e725911ab88c62bf48d 100755 (executable)
@@ -1071,7 +1071,8 @@ class P4Sync(Command):
             if p4Change > 0:
                 self.depotPaths = sorted(self.previousDepotPaths)
                 self.changeRange = "@%s,#head" % p4Change
-                self.initialParent = parseRevision(self.branch)
+                if not self.detectBranches:
+                    self.initialParent = parseRevision(self.branch)
                 if not self.silent and not self.detectBranches:
                     print "Performing incremental import into %s git branch" % self.branch