Skip to content

Commit 55809a2

Browse files
hlavkigmessner
authored andcommitted
fix #257 archive name in url for RepositoryApi.getRepositoryArchive (#258)
1 parent 6c9cf0f commit 55809a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/RepositoryApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public InputStream getRepositoryArchive(Integer projectId, String sha, ArchiveFo
473473
*/
474474
Form formData = new GitLabApiForm().withParam("sha", sha);
475475
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
476-
"projects", projectId, "repository", "archive", ".", format.toString());
476+
"projects", projectId, "repository", "archive" + "." + format.toString());
477477
return (response.readEntity(InputStream.class));
478478
}
479479

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

563563
try {
564564

0 commit comments

Comments
 (0)