提交 6e5295c4 编写于 作者: S Simon Hausmann

Fix project name guessing

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 cae7b732
......@@ -909,7 +909,12 @@ class P4Sync(Command):
def guessProjectName(self):
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):
for info in p4CmdList("branches"):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册