summaryrefslogtreecommitdiff
path: root/hooks/post-receive
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-04-03 14:06:47 +0200
committerJacob Vosmaer <jacob@gitlab.com>2019-04-03 14:06:47 +0200
commit48c5f6c8ca4549a22b4f179fbd472146fa2aa002 (patch)
treed880785bb8f9641578485c1f41e1d4abf9a218d2 /hooks/post-receive
parent433cc96551a6d1f1621f9e105b1e7eb1ccc41b7a (diff)
downloadgitlab-shell-remove-hooks.tar.gz
Remove hooks, they belong to Gitaly nowremove-hooks
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-xhooks/post-receive24
1 files changed, 3 insertions, 21 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 2b6538f..73740da 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,22 +1,4 @@
-#!/usr/bin/env ruby
+#!/bin/sh
+echo "The gitlab-shell hooks have been migrated to Gitaly, see https://gitlab.com/gitlab-org/gitaly/issues/1226"
+exit 1
-# This file was placed here by GitLab. It makes sure that your pushed commits
-# will be processed properly.
-
-refs = $stdin.read
-key_id = ENV.delete('GL_ID')
-gl_repository = ENV['GL_REPOSITORY']
-repo_path = Dir.pwd
-
-require_relative '../lib/gitlab_custom_hook'
-require_relative '../lib/hooks_utils'
-require_relative '../lib/gitlab_post_receive'
-
-push_options = HooksUtils.get_push_options
-
-if GitlabPostReceive.new(gl_repository, repo_path, key_id, refs, push_options).exec &&
- GitlabCustomHook.new(repo_path, key_id).post_receive(refs)
- exit 0
-else
- exit 1
-end