mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Fix misplaced file separator string.replace call
Project names are stored as path using the '/' file separator, and stored in a dictionary as keys. Change-Id: Ide40dfe840958ac0d46caae5f77f1a49d71c9d90
This commit is contained in:
parent
6a470be220
commit
fef9f21b28
@ -687,7 +687,7 @@ class Project(object):
|
|||||||
self.gitdir = gitdir.replace('\\', '/')
|
self.gitdir = gitdir.replace('\\', '/')
|
||||||
self.objdir = objdir.replace('\\', '/')
|
self.objdir = objdir.replace('\\', '/')
|
||||||
if worktree:
|
if worktree:
|
||||||
self.worktree = os.path.normpath(worktree.replace('\\', '/'))
|
self.worktree = os.path.normpath(worktree).replace('\\', '/')
|
||||||
else:
|
else:
|
||||||
self.worktree = None
|
self.worktree = None
|
||||||
self.relpath = relpath
|
self.relpath = relpath
|
||||||
|
Loading…
Reference in New Issue
Block a user