summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-receive1
-rwxr-xr-xhooks/pre-receive1
-rwxr-xr-xhooks/update1
3 files changed, 3 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 7877306..16a6fa9 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -7,6 +7,7 @@ refs = $stdin.read
key_id = ENV.delete('GL_ID')
repo_path = Dir.pwd
+require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_custom_hook'
require_relative '../lib/gitlab_post_receive'
diff --git a/hooks/pre-receive b/hooks/pre-receive
index 1b16fd0..97b9669 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -8,6 +8,7 @@ key_id = ENV.delete('GL_ID')
protocol = ENV.delete('GL_PROTOCOL')
repo_path = Dir.pwd
+require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_custom_hook'
require_relative '../lib/gitlab_reference_counter'
require_relative '../lib/gitlab_access'
diff --git a/hooks/update b/hooks/update
index 4c2fc08..e569446 100755
--- a/hooks/update
+++ b/hooks/update
@@ -9,6 +9,7 @@ new_value = ARGV[2]
repo_path = Dir.pwd
key_id = ENV.delete('GL_ID')
+require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_custom_hook'
if GitlabCustomHook.new(repo_path, key_id).update(ref_name, old_value, new_value)