summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-08-10 08:49:12 +0000
committerRémy Coutable <remy@rymai.me>2017-08-10 08:49:12 +0000
commit188181b780c5c0e5b05339daddad9c25c3b1bf85 (patch)
tree3bbfa27d1a1ae889332c03651fb7a80083b2ac5c
parent8790dc0bf8a743c10870946f86f997f219ac3a82 (diff)
parent892ddd386a92eeeb53973fb81802af56b800c9a4 (diff)
downloadgitlab-ce-188181b780c5c0e5b05339daddad9c25c3b1bf85.tar.gz
Merge branch 'gitlab-infrastructure-archive-route-quick-fix' into 'master'
alternative route for download archive See merge request !13439
-rw-r--r--config/routes/repository.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb
index 2ba16035ece..57b7c55423d 100644
--- a/config/routes/repository.rb
+++ b/config/routes/repository.rb
@@ -3,6 +3,9 @@
resource :repository, only: [:create] do
member do
get ':ref/archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex, ref: /.+/ }, action: 'archive', as: 'archive'
+
+ # deprecated since GitLab 9.5
+ get 'archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex }, as: 'archive_alternative'
end
end