timols / java-gitlab-api

A wrapper for the Gitlab API written in Java
Apache License 2.0
383 stars 317 forks source link

Fix commits pagination #344

Closed ctabin closed 5 years ago

ctabin commented 5 years ago

Hi,

In the GitLabAPI.getCommits(projectId, pagination, branchOrTag), the pagination argument is ignored when invoking the extendedgetCommit` method. Since there is no warning about that, not all the commits will come back.

A temporary fix in 4.0.1 is to directly call getCommits(projectId, pagination, branchOrTag, null).

Best regards ! Cédric