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:
Renaud Paquay 2016-11-01 18:28:01 -07:00 committed by David Pursehouse
parent 6a470be220
commit fef9f21b28

View File

@ -687,7 +687,7 @@ class Project(object):
self.gitdir = gitdir.replace('\\', '/')
self.objdir = objdir.replace('\\', '/')
if worktree:
self.worktree = os.path.normpath(worktree.replace('\\', '/'))
self.worktree = os.path.normpath(worktree).replace('\\', '/')
else:
self.worktree = None
self.relpath = relpath