Skip to content

Commit

Permalink
Fix branch detection in multi-branch imports
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
  • Loading branch information
Simon Hausmann committed May 21, 2007
1 parent 5834684 commit af8da89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af8da89

Please sign in to comment.