From 77608866dc1f5c9d796da535abe8476443fdd80c Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Thu, 3 Sep 2020 19:03:04 +0200 Subject: hooks: Remove prereceive hook Ruby implementation This change is part of a larger effort to move away from using the hooks being implemented in Ruby, and moves the execution to Go to speed up the hooks. The prereceive hook was already enabled by default, meaning that the change made doesn't influence anyone that hasn't explicity turned it off. Given there were no bug reports, the old implementation is removed as fallback. --- ruby/lib/gitlab/git/hook.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'ruby') diff --git a/ruby/lib/gitlab/git/hook.rb b/ruby/lib/gitlab/git/hook.rb index e16895722..c391bbf78 100644 --- a/ruby/lib/gitlab/git/hook.rb +++ b/ruby/lib/gitlab/git/hook.rb @@ -120,7 +120,6 @@ module Gitlab 'GIT_DIR' => repo_path, 'GITALY_REPO' => repository.gitaly_repository.to_json, 'GITALY_SOCKET' => Gitlab.config.gitaly.internal_socket, - 'GITALY_GO_PRERECEIVE' => repository.feature_enabled?('go-prereceive-hook', on_by_default: true).to_s, 'GITALY_GO_POSTRECEIVE' => repository.feature_enabled?('go-postreceive-hook').to_s } end -- cgit v1.2.3