mirror of
https://github.com/frej/fast-export.git
synced 2026-01-15 02:32:05 +01:00
Fix branch detection in multi-branch imports
This commit is contained in:
2
git-p4
2
git-p4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user