Don't attempt to set the initialParent on multi-branch imports (useless).
authorSimon Hausmann <shausman@rhea.troll.no>
Thu, 7 Jun 2007 07:39:51 +0000 (09:39 +0200)
committerSimon Hausmann <shausman@rhea.troll.no>
Thu, 7 Jun 2007 07:39:51 +0000 (09:39 +0200)
At some point the code paths should be unified, but for now I need a working
git-p4 :)

git-p4

diff --git a/git-p4 b/git-p4
index ba34f0a..ff737d7 100755 (executable)
--- a/git-p4
+++ b/git-p4
@@ -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