diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-10 08:49:12 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-10 08:49:12 +0000 |
commit | 188181b780c5c0e5b05339daddad9c25c3b1bf85 (patch) | |
tree | 3bbfa27d1a1ae889332c03651fb7a80083b2ac5c | |
parent | 8790dc0bf8a743c10870946f86f997f219ac3a82 (diff) | |
parent | 892ddd386a92eeeb53973fb81802af56b800c9a4 (diff) | |
download | gitlab-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.rb | 3 |
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 |