From: Simon Hausmann Date: Mon, 11 Jun 2007 06:50:57 +0000 (+0200) Subject: Fix project name guessing X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=753e5e80a0cc7f69c54996281ddf315397ca0bad;p=python%2Ffast-export.git Fix project name guessing --- diff --git a/git-p4 b/git-p4 index 9d52ead..551573a 100755 --- a/git-p4 +++ b/git-p4 @@ -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"):