mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "repo: Repo does not always handle '.' parameter correctly"
This commit is contained in:
commit
8016f60a46
@ -119,6 +119,11 @@ class Command(object):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
oldpath = path
|
oldpath = path
|
||||||
path = os.path.dirname(path)
|
path = os.path.dirname(path)
|
||||||
|
if not project and path == manifest.topdir:
|
||||||
|
try:
|
||||||
|
project = self._by_path[path]
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
project = self._by_path[path]
|
project = self._by_path[path]
|
||||||
|
@ -628,7 +628,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 = 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