From f2d561c5572ee7e046c77e4e7b637bc56751d21e Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Tue, 5 Jun 2018 13:56:30 +0900 Subject: [PATCH] (refs #2048)Fix wrong copy-and-pasted code :P --- .../core/controller/RepositoryViewerController.scala | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala b/src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala index a99973b7e..70d1b6af4 100644 --- a/src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala +++ b/src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala @@ -837,14 +837,6 @@ trait RepositoryViewerControllerBase extends ControllerBase { archiveRepository(branch, branch + ".tar.gz", repository, "") }) - /** - * Download repository contents as a tar.gz archive as compatible URL. - */ - get("/:owner/:repository/archive/:branch.tar.gz")(referrersOnly { repository => - val branch = params("branch") - archiveRepository(branch, branch + ".tar.gz", repository, "") - }) - /** * Download repository contents as a tar.bz2 archive as compatible URL. */ @@ -858,7 +850,7 @@ trait RepositoryViewerControllerBase extends ControllerBase { */ get("/:owner/:repository/archive/:branch.tar.xz")(referrersOnly { repository => val branch = params("branch") - archiveRepository(branch, branch + ".tar.bz2", repository, "") + archiveRepository(branch, branch + ".tar.xz", repository, "") }) /**