summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-01-10 13:28:22 -0800
committerShawn O. Pearce <sop@google.com>2011-01-10 13:28:22 -0800
commite7a3bcbbb8083e812ce07a5459f0e6d30edfb9fe (patch)
tree24c2d93c0082463111cac4359680db7ad35a75da /project.py
parent25b51d8cb755e62dfcba94b90c755e5c167ccf7c (diff)
parent0ce6ca9c7bc285eb644cdaacec92afca24939841 (diff)
downloadgit-repo-e7a3bcbbb8083e812ce07a5459f0e6d30edfb9fe.tar.gz
Merge branch 'stable'
* stable: Fix mirror clients with no worktree
Diffstat (limited to 'project.py')
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index fde98ad7..b4044943 100644
--- a/project.py
+++ b/project.py
@@ -237,7 +237,10 @@ class Project(object):
237 self.name = name 237 self.name = name
238 self.remote = remote 238 self.remote = remote
239 self.gitdir = gitdir.replace('\\', '/') 239 self.gitdir = gitdir.replace('\\', '/')
240 self.worktree = worktree.replace('\\', '/') 240 if worktree:
241 self.worktree = worktree.replace('\\', '/')
242 else:
243 self.worktree = None
241 self.relpath = relpath 244 self.relpath = relpath
242 self.revisionExpr = revisionExpr 245 self.revisionExpr = revisionExpr
243 246