Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-05-18 22:33:43 +0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-05-18 22:33:43 +0300
commitde33a5bd535d6f4a1dc6cbdb2bd1b208ab6475e7 (patch)
treeb5b92ba90725bd0a8c1576ea936cb243c56a5c59 /lib/api/internal.rb
parent9a10a6bfd563043b9e767f442c23c73f8af5e09b (diff)
Prevent errors from non-functional notify_post_receive endpoint
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 96aaaf868ea..9ebd4841296 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -136,14 +136,15 @@ module API
post "/notify_post_receive" do
status 200
- return unless Gitlab::GitalyClient.enabled?
-
- begin
- repository = wiki? ? project.wiki.repository : project.repository
- Gitlab::GitalyClient::Notifications.new(repository.raw_repository).post_receive
- rescue GRPC::Unavailable => e
- render_api_error!(e, 500)
- end
+ # TODO: Re-enable when Gitaly is processing the post-receive notification
+ # return unless Gitlab::GitalyClient.enabled?
+ #
+ # begin
+ # repository = wiki? ? project.wiki.repository : project.repository
+ # Gitlab::GitalyClient::Notifications.new(repository.raw_repository).post_receive
+ # rescue GRPC::Unavailable => e
+ # render_api_error!(e, 500)
+ # end
end
end
end