diff options
| author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-31 15:50:31 +1000 |
|---|---|---|
| committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 00:24:17 +1000 |
| commit | cda96eb70992cc80d0dde8195df57d7b5c4a1429 (patch) | |
| tree | eb99d0e0773ba25d4a622a7d4af9f12cab7350e3 /hooks/update | |
| parent | 886b2178bfffa8d355e25a743132ece11c6d3bb2 (diff) | |
| download | gitlab-shell-cda96eb70992cc80d0dde8195df57d7b5c4a1429.tar.gz | |
Use gl_id instead of key_id
- Is possible that gl_id could be a 'user_id'
- Is a more accurate variable name
Diffstat (limited to 'hooks/update')
| -rwxr-xr-x | hooks/update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/update b/hooks/update index 4c2fc08..263a3e8 100755 --- a/hooks/update +++ b/hooks/update @@ -7,11 +7,11 @@ ref_name = ARGV[0] old_value = ARGV[1] new_value = ARGV[2] repo_path = Dir.pwd -key_id = ENV.delete('GL_ID') +gl_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) +if GitlabCustomHook.new(repo_path, gl_id).update(ref_name, old_value, new_value) exit 0 else exit 1 |
