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: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
parent
c1b296b9f1
commit
8a5fc95b43
@ -719,6 +719,9 @@ class P4Sync(Command):
|
|||||||
self.initialParents = {}
|
self.initialParents = {}
|
||||||
|
|
||||||
self.listExistingP4GitBranches()
|
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:
|
if self.syncWithOrigin and gitBranchExists("origin") and gitBranchExists("refs/remotes/p4/master") and not self.detectBranches:
|
||||||
### needs to be ported to multi branch import
|
### needs to be ported to multi branch import
|
||||||
|
Loading…
Reference in New Issue
Block a user