commit | 8bfa12b63124fac78496030e8c5647a6ee887533 | [log] [tgz] |
---|---|---|
author | Ivan Frade <ifrade@google.com> | Mon Mar 15 13:21:24 2021 -0700 |
committer | Ivan Frade <ifrade@google.com> | Tue Mar 16 08:46:01 2021 -0700 |
tree | b370109246937e9844aff47885d4f2eb78ec3dcb | |
parent | 91f2c8cb366e21c20544f531be710fdfa5eb3afb [diff] |
Inject GerritRemoteReader instance When a manifest contains a project in a second host, the manifest parser generates a correct .gitmodules but the GerritRemoteReader ignores the host and tries to read the sha1 of the submodule from <this host>/<project>. In some cases this produces an inconsistent superproject: the .gitmodules points to a repo but the SHA1 in the gitlink doesn't exist there. Cross-host is a feature of the backend, the default implementation should not count on it. Make the GerritRemoteReader injectable, so providers can use a cross-host implementation if supported in their platform. Change-Id: I0475348373dd3c6c750ced864728c07c82b831b5
The plugin will update a superproject to contain the submodules defined in the manifest XML file whenever the manifest repo is changed.
For more information see the documentation.