mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-06-22 03:41:46 +08:00
Fix mirror clients with no worktree
Commit "Make path references OS independent" (df14a70c45) broke mirror clients by trying to invoke replace() on None when there is no worktree. Change-Id: Ie0a187058358f7dcdf83119e45cc65409c980f11
This commit is contained in:
@ -237,7 +237,10 @@ class Project(object):
|
|||||||
self.name = name
|
self.name = name
|
||||||
self.remote = remote
|
self.remote = remote
|
||||||
self.gitdir = gitdir.replace('\\', '/')
|
self.gitdir = gitdir.replace('\\', '/')
|
||||||
|
if worktree:
|
||||||
self.worktree = worktree.replace('\\', '/')
|
self.worktree = worktree.replace('\\', '/')
|
||||||
|
else:
|
||||||
|
self.worktree = None
|
||||||
self.relpath = relpath
|
self.relpath = relpath
|
||||||
self.revisionExpr = revisionExpr
|
self.revisionExpr = revisionExpr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user