mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-02-12 09:37:02 +01:00
(refs #2048)Fix wrong copy-and-pasted code :P
This commit is contained in:
@@ -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, "")
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user