mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Fix an issue that repo can't see projects declared in a local manifest.
When loading of superproject failed, we were resetting the manifest to None, and later code would reload the manifest to see if there are submodules, which would load the non-local manifest, causing sync with superproject to fail. Address this by setting the manifest_name to opt.manifest_name instead. Bug: [google internal] b/189139268 Change-Id: I3616512e1c4b73e7eca0d83fd1fc474b825adbbf Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/311102 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Xin Li <delphij@google.com>
This commit is contained in:
parent
06da9987f6
commit
e39d8b36f6
@ -960,7 +960,7 @@ later is required to fix a server side protocol bug.
|
|||||||
if git_superproject.UseSuperproject(opt, self.manifest):
|
if git_superproject.UseSuperproject(opt, self.manifest):
|
||||||
new_manifest_name = self._UpdateProjectsRevisionId(opt, args, load_local_manifests)
|
new_manifest_name = self._UpdateProjectsRevisionId(opt, args, load_local_manifests)
|
||||||
if not new_manifest_name:
|
if not new_manifest_name:
|
||||||
manifest_name = new_manifest_name
|
manifest_name = opt.manifest_name
|
||||||
|
|
||||||
if self.gitc_manifest:
|
if self.gitc_manifest:
|
||||||
gitc_manifest_projects = self.GetProjects(args,
|
gitc_manifest_projects = self.GetProjects(args,
|
||||||
|
Loading…
Reference in New Issue
Block a user