summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--command.py5
-rw-r--r--project.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/command.py b/command.py
index bc2f9501..2ff0a344 100644
--- a/command.py
+++ b/command.py
@@ -119,6 +119,11 @@ class Command(object):
119 except KeyError: 119 except KeyError:
120 oldpath = path 120 oldpath = path
121 path = os.path.dirname(path) 121 path = os.path.dirname(path)
122 if not project and path == manifest.topdir:
123 try:
124 project = self._by_path[path]
125 except KeyError:
126 pass
122 else: 127 else:
123 try: 128 try:
124 project = self._by_path[path] 129 project = self._by_path[path]
diff --git a/project.py b/project.py
index e0bd9c10..4a601f87 100644
--- a/project.py
+++ b/project.py
@@ -626,7 +626,7 @@ class Project(object):
626 self.gitdir = gitdir.replace('\\', '/') 626 self.gitdir = gitdir.replace('\\', '/')
627 self.objdir = objdir.replace('\\', '/') 627 self.objdir = objdir.replace('\\', '/')
628 if worktree: 628 if worktree:
629 self.worktree = worktree.replace('\\', '/') 629 self.worktree = os.path.normpath(worktree.replace('\\', '/'))
630 else: 630 else:
631 self.worktree = None 631 self.worktree = None
632 self.relpath = relpath 632 self.relpath = relpath