mirror of
https://github.com/frej/fast-export.git
synced 2026-01-16 11:12:08 +01:00
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.
This commit is contained in:
3
git-p4
3
git-p4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user