diff options
| author | Nick Thomas <nick@gitlab.com> | 2019-04-03 12:35:25 +0000 |
|---|---|---|
| committer | Nick Thomas <nick@gitlab.com> | 2019-04-03 12:35:25 +0000 |
| commit | d03608dcc356dddd696bd081f5a35fa416c4439c (patch) | |
| tree | 035d1ddb8bcef59e91576d42efc1dbd8824adc9d /hooks/update | |
| parent | 433cc96551a6d1f1621f9e105b1e7eb1ccc41b7a (diff) | |
| parent | e0824f17367a44e5bac84dac7197f9b45e37ab01 (diff) | |
| download | gitlab-shell-d03608dcc356dddd696bd081f5a35fa416c4439c.tar.gz | |
Merge branch 'remove-hooks' into 'master'
Remove hooks, they belong to Gitaly now
See merge request gitlab-org/gitlab-shell!291
Diffstat (limited to 'hooks/update')
| -rwxr-xr-x | hooks/update | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/hooks/update b/hooks/update index 4c2fc08..73740da 100755 --- a/hooks/update +++ b/hooks/update @@ -1,18 +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. - -ref_name = ARGV[0] -old_value = ARGV[1] -new_value = ARGV[2] -repo_path = Dir.pwd -key_id = ENV.delete('GL_ID') - -require_relative '../lib/gitlab_custom_hook' - -if GitlabCustomHook.new(repo_path, key_id).update(ref_name, old_value, new_value) - exit 0 -else - exit 1 -end |
