mirror of
https://github.com/git/git.git
synced 2024-09-20 17:35:25 +02:00
Fix project name guessing
Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
parent
cae7b732d8
commit
6e5295c4d3
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user