Browse Source

Fix project name guessing

Signed-off-by: Simon Hausmann <simon@lst.de>
maint
Simon Hausmann 18 years ago
parent
commit
6e5295c4d3
  1. 7
      contrib/fast-import/git-p4

7
contrib/fast-import/git-p4

@ -909,7 +909,12 @@ class P4Sync(Command):


def guessProjectName(self): def guessProjectName(self):
for p in self.depotPaths: for p in self.depotPaths:
return p [p.strip().rfind("/") + 1:] if p.endswith("/"):
p = p[:-1]
p = p[p.strip().rfind("/") + 1:]
if not p.endswith("/"):
p += "/"
return p


def getBranchMapping(self): def getBranchMapping(self):
for info in p4CmdList("branches"): for info in p4CmdList("branches"):

Loading…
Cancel
Save