diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-26 12:09:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-26 12:09:44 +0000 |
commit | e5e0589e097991ca671a348de81331240e85719d (patch) | |
tree | 0767e6d3388f6ebf65f5d47a3ecb0d52430fa7da /lib/api/repositories.rb | |
parent | 0ccabeb3f62c5fbc81f52cc16fa654404bb87874 (diff) | |
download | gitlab-ce-e5e0589e097991ca671a348de81331240e85719d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r-- | lib/api/repositories.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb index 033cc6744b0..a47a1ddd822 100644 --- a/lib/api/repositories.rb +++ b/lib/api/repositories.rb @@ -37,7 +37,7 @@ module API begin @blob = Gitlab::Git::Blob.raw(@repo, params[:sha]) @blob.load_all_data!(@repo) - rescue + rescue StandardError not_found! 'Blob' end @@ -106,7 +106,7 @@ module API not_acceptable! if Gitlab::HotlinkingDetector.intercept_hotlinking?(request) send_git_archive user_project.repository, ref: params[:sha], format: params[:format], append_sha: true - rescue + rescue StandardError not_found!('File') end @@ -152,7 +152,7 @@ module API get ':id/repository/contributors' do contributors = ::Kaminari.paginate_array(user_project.repository.contributors(order_by: params[:order_by], sort: params[:sort])) present paginate(contributors), with: Entities::Contributor - rescue + rescue StandardError not_found! end |