Search in sources :

Example 1 with Input

use of com.google.gerrit.server.project.SetHead.Input in project gerrit by GerritCodeReview.

the class SetHeadCommand method run.

@Override
protected void run() throws Exception {
    Input input = new SetHead.Input();
    input.ref = newHead;
    try {
        setHead.apply(new ProjectResource(project), input);
    } catch (UnprocessableEntityException e) {
        throw die(e);
    }
}
Also used : UnprocessableEntityException(com.google.gerrit.extensions.restapi.UnprocessableEntityException) Input(com.google.gerrit.server.project.SetHead.Input) ProjectResource(com.google.gerrit.server.project.ProjectResource)

Aggregations

UnprocessableEntityException (com.google.gerrit.extensions.restapi.UnprocessableEntityException)1 ProjectResource (com.google.gerrit.server.project.ProjectResource)1 Input (com.google.gerrit.server.project.SetHead.Input)1