Skip to content

Commit

Permalink
Specifying --detect-branches is now only needed for the initial clone…
Browse files Browse the repository at this point in the history
…/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>
  • Loading branch information
Simon Hausmann committed May 20, 2007
1 parent c1b296b commit 8a5fc95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a5fc95

Please sign in to comment.