diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-04-06 12:41:38 +0200 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-04-06 13:10:10 +0200 |
| commit | e8403e8bb7c5c9109af83a183943d5361ad1409b (patch) | |
| tree | 0fe3e73b6695816c3ce0a8f01f9fb8cac29a1a9f /hooks | |
| parent | f64e5d4a075479846f2e18bb34b84eb26d180f57 (diff) | |
| download | gitlab-shell-e8403e8bb7c5c9109af83a183943d5361ad1409b.tar.gz | |
Move setting/unsetting of GL_ID from lib to executables.
Diffstat (limited to 'hooks')
| -rwxr-xr-x | hooks/post-receive | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index 301f639..da0ff41 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -7,6 +7,9 @@ refs = ARGF.read key_id = ENV['GL_ID'] repo_path = Dir.pwd +# reset GL_ID env since we already got its value +ENV['GL_ID'] = nil + require_relative '../lib/gitlab_custom_hook' require_relative '../lib/gitlab_post_receive' |
