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-09-01 00:01:07 +0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-09-06 02:12:25 +0300
commitff3eeffa083e6f2299db9c622611762028578bfa (patch)
tree6a59889232aa40480af33f06243e37059d540ab1 /lib/api/internal.rb
parent8323e55b6c0d59627c584b49e70d4f6ccfd3c8f0 (diff)
Implement /internal/pre-receive for shell operations
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 85b66593175..c0fef56378f 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -143,6 +143,14 @@ module API
{ success: true, recovery_codes: codes }
end
+ post '/pre_receive' do
+ status 200
+
+ reference_counter_increased = Gitlab::ReferenceCounter.new(params[:gl_repository]).increase
+
+ { reference_counter_increased: reference_counter_increased }
+ end
+
post "/notify_post_receive" do
status 200