diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2020-09-03 20:03:04 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2020-09-09 09:56:28 +0300 |
commit | 77608866dc1f5c9d796da535abe8476443fdd80c (patch) | |
tree | 29fa04ed205187c0e178e1f3d17eba08fd002ae9 /ruby | |
parent | c656764fa4a236c9ffd85a9ba436175836b172d7 (diff) |
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.
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/lib/gitlab/git/hook.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |