Skip to content

fix #257 archive name in url for RepositoryApi.getRepositoryArchive #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/gitlab4j/api/RepositoryApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public InputStream getRepositoryArchive(Integer projectId, String sha, ArchiveFo
*/
Form formData = new GitLabApiForm().withParam("sha", sha);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
"projects", projectId, "repository", "archive", ".", format.toString());
"projects", projectId, "repository", "archive" + "." + format.toString());
return (response.readEntity(InputStream.class));
}

Expand Down Expand Up @@ -558,7 +558,7 @@ public File getRepositoryArchive(Integer projectId, String sha, File directory,
*/
Form formData = new GitLabApiForm().withParam("sha", sha);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
"projects", projectId, "repository", "archive", ".", format.toString());
"projects", projectId, "repository", "archive" + "." + format.toString());

try {

Expand Down