Merge "repo: Repo does not always handle '.' parameter correctly"

This commit is contained in:
David Pursehouse
2016-08-14 08:50:28 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 1 deletions

View File

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