summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 341dc1c)
raw | patch | inline | side by side (parent: 341dc1c)
author | Simon Hausmann <simon@lst.de> | |
Mon, 21 May 2007 06:44:16 +0000 (08:44 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 21 May 2007 06:44:16 +0000 (08:44 +0200) |
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index beb6529b44dcd91ac96929a46afc61e5058a90aa..7489c91081a3234d086dbb88afeac25509106ca6 100755 (executable)
self.knownBranches = {}
self.initialParents = {}
- self.listExistingP4GitBranches()
- if len(self.p4BranchesInGit) > 1 and not self.silent:
- 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
if not gitBranchExists("refs/remotes/p4/HEAD"):
system("git symbolic-ref refs/remotes/p4/HEAD %s" % self.branch)
+ # this needs to be called after the conversion from heads/p4 to remotes/p4/master
+ self.listExistingP4GitBranches()
+ if len(self.p4BranchesInGit) > 1 and not self.silent:
+ print "Importing from/into multiple branches"
+ self.detectBranches = True
+
if len(args) == 0:
if not gitBranchExists(self.branch) and gitBranchExists("origin") and not self.detectBranches:
### needs to be ported to multi branch import