diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-09-01 00:01:07 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-09-06 02:12:25 +0300 |
commit | ff3eeffa083e6f2299db9c622611762028578bfa (patch) | |
tree | 6a59889232aa40480af33f06243e37059d540ab1 /lib | |
parent | 8323e55b6c0d59627c584b49e70d4f6ccfd3c8f0 (diff) |
Implement /internal/pre-receive for shell operations
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/internal.rb | 8 |
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 |