Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@gmail.com>2017-08-03 19:44:48 +0300
committerRémy Coutable <remy@rymai.me>2017-08-03 19:44:48 +0300
commit4974f1ef86f697fa410093720f51414791f210c6 (patch)
treeccf4e210bb38f31caa1bcf73f7569b9aad0cad36 /config
parent29f1fa8250407067683cc0a58350ab4ef5ee3189 (diff)
fix #3686 make tarball download url to end with extension
Diffstat (limited to 'config')
-rw-r--r--config/routes/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb
index edcf3ddf57b..2ba16035ece 100644
--- a/config/routes/repository.rb
+++ b/config/routes/repository.rb
@@ -2,7 +2,7 @@
resource :repository, only: [:create] do
member do
- get 'archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex }
+ get ':ref/archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex, ref: /.+/ }, action: 'archive', as: 'archive'
end
end