Commit 24fbb5bc authored by Greg Messner's avatar Greg Messner
Browse files

Fixed RefType issue.

No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -5,6 +5,7 @@ import org.gitlab4j.api.models.Commit;
import org.gitlab4j.api.models.CommitAction;
import org.gitlab4j.api.models.CommitPayload;
import org.gitlab4j.api.models.CommitRef;
import org.gitlab4j.api.models.CommitRef.RefType;
import org.gitlab4j.api.models.Diff;
import org.gitlab4j.api.utils.ISO8601;
......@@ -17,8 +18,6 @@ import java.util.Date;
import java.util.List;
import java.util.Optional;
import static org.gitlab4j.api.models.CommitRef.RefType.all;
/**
* This class implements the client side API for the GitLab commits calls.
*/
......@@ -265,7 +264,7 @@ public class CommitsApi extends AbstractApi {
* @since Gitlab 10.6
*/
public List<CommitRef> getCommitRefs(int projectId, String sha) throws GitLabApiException {
return getCommitRefs(projectId, sha, all);
return getCommitRefs(projectId, sha, RefType.ALL);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment