Browse Source

Fix branch detection in multi-branch imports

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
maint
Simon Hausmann 18 years ago
parent
commit
af8da89cb7
  1. 2
      contrib/fast-import/git-p4

2
contrib/fast-import/git-p4

@ -556,7 +556,7 @@ class P4Sync(Command): @@ -556,7 +556,7 @@ class P4Sync(Command):
relPath = path[len(self.depotPath):]

for branch in self.knownBranches.keys():
if relPath.startswith(branch):
if relPath.startswith(branch + "/"): # add a trailing slash so that a commit into qt/4.2foo doesn't end up in qt/4.2
if branch not in branches:
branches[branch] = []
branches[branch].append(file)

Loading…
Cancel
Save