projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae7b73
)
Fix project name guessing
author
Simon Hausmann
<simon@lst.de>
Mon, 11 Jun 2007 06:50:57 +0000
(08:50 +0200)
committer
Simon Hausmann
<simon@lst.de>
Mon, 11 Jun 2007 06:50:57 +0000
(08:50 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 9d52eada425424f1dedcd8704128067fcc5412dc..551573afc59245631668d923d98c75acad0124e1 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/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"):