diff --git a/pom.xml b/pom.xml index b137c1752807537a3dc5c2c60662ee06f2e7d31d..1aa3d368971bacb3b428a930c89eca8d43d3b637 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - com.messners + com.alibaba.platform.shared gitlab-api jar 2.0.2-SNAPSHOT diff --git a/src/main/java/com/messners/gitlab/api/RepositoryApi.java b/src/main/java/com/messners/gitlab/api/RepositoryApi.java index 66f593c437c5f01f6659bd02c1542252b1c92037..ec130bfe93031c8f9a9fc1cde2c277996f2dde2e 100644 --- a/src/main/java/com/messners/gitlab/api/RepositoryApi.java +++ b/src/main/java/com/messners/gitlab/api/RepositoryApi.java @@ -129,10 +129,10 @@ public class RepositoryApi extends AbstractApi { * * @param projectId * @return a tree with the directories and files of a project - * @throws GitLabApiException + * @throws GitLabApiException */ public List getTree (Integer projectId) throws GitLabApiException { - Response response = put(Response.Status.OK, null, "projects", projectId, "repository", "tree"); + Response response = get(Response.Status.OK, null, "projects", projectId, "repository", "tree"); return (response.readEntity(new GenericType>() {})); }