diff --git a/src/main/java/org/gitlab4j/api/RepositoryApi.java b/src/main/java/org/gitlab4j/api/RepositoryApi.java index 0ec36e5b7040bedfa60f1dcf8668d539f317ad12..65e06a0faaecd41e0cc90db507e50854615d2e26 100644 --- a/src/main/java/org/gitlab4j/api/RepositoryApi.java +++ b/src/main/java/org/gitlab4j/api/RepositoryApi.java @@ -36,7 +36,8 @@ public class RepositoryApi extends AbstractApi { * @throws GitLabApiException if any exception occurs */ public List getBranches(Integer projectId) throws GitLabApiException { - Response response = get(Response.Status.OK, null, "projects", projectId, "repository", "branches"); + Form formData = new GitLabApiForm().withParam("per_page", getDefaultPerPage()); + Response response = get(Response.Status.OK, formData.asMap(), "projects", projectId, "repository", "branches"); return (response.readEntity(new GenericType>() { })); }