From 94d5e2bc8404515ac344aca467a596221deb2780 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 7 Jun 2007 09:41:53 +0200 Subject: [PATCH] Hack to make the multi-branch import work again with self.depotPaths now that self.depotPath is gone --- git-p4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/git-p4 b/git-p4 index ff737d7..ececc44 100755 --- a/git-p4 +++ b/git-p4 @@ -909,9 +909,10 @@ class P4Sync(Command): continue source = paths[0] destination = paths[1] - if source.startswith(self.depotPath) and destination.startswith(self.depotPath): - source = source[len(self.depotPath):-4] - destination = destination[len(self.depotPath):-4] + ## HACK + if source.startswith(self.depotPaths[0]) and destination.startswith(self.depotPaths[0]): + source = source[len(self.depotPaths[0]):-4] + destination = destination[len(self.depotPaths[0]):-4] if destination not in self.knownBranches: self.knownBranches[destination] = source if source not in self.knownBranches: -- 2.11.4.GIT