use of com.google.gerrit.server.submit.SubmoduleOp in project gerrit by GerritCodeReview.
the class SuperprojectUpdateSubmissionListener method afterSubmission.
@Override
public void afterSubmission(MergeOpRepoManager orm) {
collectSuccessfullUpdates();
// Update superproject gitlinks if required.
if (!updatedBranches.isEmpty()) {
try {
SubmoduleOp op = subOpFactory.create(updatedBranches, orm);
op.updateSuperProjects(dryrun);
} catch (RestApiException e) {
logger.atWarning().withCause(e).log("Can't update the superprojects");
}
}
}
Aggregations