(refs #2048)Fix wrong copy-and-pasted code :P

This commit is contained in:
Naoki Takezoe
2018-06-05 13:56:30 +09:00
parent ea547a43a5
commit f2d561c557

View File

@@ -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, "")
})
/**