Merge branch 'stable'

* stable:
  Fix mirror clients with no worktree
This commit is contained in:
Shawn O. Pearce 2011-01-10 13:28:22 -08:00
commit e7a3bcbbb8

View File

@ -237,7 +237,10 @@ class Project(object):
self.name = name
self.remote = remote
self.gitdir = gitdir.replace('\\', '/')
self.worktree = worktree.replace('\\', '/')
if worktree:
self.worktree = worktree.replace('\\', '/')
else:
self.worktree = None
self.relpath = relpath
self.revisionExpr = revisionExpr