diff options
Diffstat (limited to 'manifest_xml.py')
| -rw-r--r-- | manifest_xml.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 3c43295e..db7a9286 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
| @@ -768,8 +768,11 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md | |||
| 768 | 768 | ||
| 769 | @property | 769 | @property |
| 770 | def is_multimanifest(self): | 770 | def is_multimanifest(self): |
| 771 | """Whether this is a multimanifest checkout""" | 771 | """Whether this is a multimanifest checkout. |
| 772 | return bool(self.outer_client.submanifests) | 772 | |
| 773 | This is safe to use as long as the outermost manifest XML has been parsed. | ||
| 774 | """ | ||
| 775 | return bool(self._outer_client._submanifests) | ||
| 773 | 776 | ||
| 774 | @property | 777 | @property |
| 775 | def is_submanifest(self): | 778 | def is_submanifest(self): |
| @@ -1679,7 +1682,7 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md | |||
| 1679 | # We allow people to mix git worktrees & non-git worktrees for now. | 1682 | # We allow people to mix git worktrees & non-git worktrees for now. |
| 1680 | # This allows for in situ migration of repo clients. | 1683 | # This allows for in situ migration of repo clients. |
| 1681 | if os.path.exists(gitdir) or not self.UseGitWorktrees: | 1684 | if os.path.exists(gitdir) or not self.UseGitWorktrees: |
| 1682 | objdir = os.path.join(self.subdir, 'project-objects', namepath) | 1685 | objdir = os.path.join(self.repodir, 'project-objects', namepath) |
| 1683 | else: | 1686 | else: |
| 1684 | use_git_worktrees = True | 1687 | use_git_worktrees = True |
| 1685 | gitdir = os.path.join(self.repodir, 'worktrees', namepath) | 1688 | gitdir = os.path.join(self.repodir, 'worktrees', namepath) |
