diff options
| author | Douwe Maan <douwe@gitlab.com> | 2017-05-24 20:59:26 +0000 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2017-05-24 20:59:26 +0000 |
| commit | 43b1750892369d579edc7cd4e4ea1f7ac8667e34 (patch) | |
| tree | 694921527f2697a38d478abcb585e0297951232b /lib/api/v3 | |
| parent | c846a8329ab24b551c1e6cc899434c0802769137 (diff) | |
| download | gitlab-ce-43b1750892369d579edc7cd4e4ea1f7ac8667e34.tar.gz | |
Revert "Remove changes that are not absolutely necessary"
This reverts commit b0498c176fa134761d899c9b369be12f1ca789c5
Diffstat (limited to 'lib/api/v3')
| -rw-r--r-- | lib/api/v3/repositories.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/repositories.rb b/lib/api/v3/repositories.rb index e4d14bc8168..0eaa0de2eef 100644 --- a/lib/api/v3/repositories.rb +++ b/lib/api/v3/repositories.rb @@ -72,7 +72,7 @@ module API optional :sha, type: String, desc: 'The commit sha of the archive to be downloaded' optional :format, type: String, desc: 'The archive format' end - get ':id/repository/archive', requirements: { format: Gitlab::Regex.archive_formats_regex } do + get ':id/repository/archive', requirements: { format: Gitlab::PathRegex.archive_formats_regex } do begin send_git_archive user_project.repository, ref: params[:sha], format: params[:format] rescue |
