summaryrefslogtreecommitdiff
path: root/hooks/update
diff options
context:
space:
mode:
authorDirk Hörner <dirker@gmail.com>2016-09-05 11:59:25 +0200
committerSean McGivern <sean@gitlab.com>2016-12-01 11:40:11 +0000
commitd05522de85dcdfa91349c0d9fc78bf72931d6a39 (patch)
tree30326e051959be5a7ddf6539b3c63fa48aa7330c /hooks/update
parent2d774eeae8ccfb211cc6ab6aeab5db600f3fdc7c (diff)
downloadgitlab-shell-d05522de85dcdfa91349c0d9fc78bf72931d6a39.tar.gz
custom_hook: refactor to pull repo_path into class
This commit takes the GitlabCustomHook a bit clother to the other hook handling classes by receiving the repo_path as argument to initialize() instead of passing it to each method.
Diffstat (limited to 'hooks/update')
-rwxr-xr-xhooks/update2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/update b/hooks/update
index 223575d..4c2fc08 100755
--- a/hooks/update
+++ b/hooks/update
@@ -11,7 +11,7 @@ key_id = ENV.delete('GL_ID')
require_relative '../lib/gitlab_custom_hook'
-if GitlabCustomHook.new(key_id).update(ref_name, old_value, new_value, repo_path)
+if GitlabCustomHook.new(repo_path, key_id).update(ref_name, old_value, new_value)
exit 0
else
exit 1