From 892ddd386a92eeeb53973fb81802af56b800c9a4 Mon Sep 17 00:00:00 2001 From: haseeb Date: Thu, 10 Aug 2017 08:49:11 +0000 Subject: alternative route for download archive --- config/routes/repository.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') 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 -- cgit v1.2.1