提交 8a5fc95b 编写于 作者: S Simon Hausmann

Specifying --detect-branches is now only needed for the initial clone/sync.

Afterwards it's turned on implicitly if more p4 branches than remotes/p4/master
are found.
Signed-off-by: NSimon Hausmann <shausman@trolltech.com>
上级 c1b296b9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册