mirror of
https://github.com/frej/fast-export.git
synced 2026-03-22 00:41:30 +01:00
Hack to make the multi-branch import work again with self.depotPaths now that
self.depotPath is gone
This commit is contained in:
7
git-p4
7
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:
|
||||
|
||||
Reference in New Issue
Block a user