diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-06 12:26:58 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-06 13:08:47 +0200 |
commit | 8f0f67622971d1861769a9deac6b102c9fdaed42 (patch) | |
tree | 8c1d3e3a75bb0fad6072323a1b92594ae4a707f8 /hooks | |
parent | 63efd0927224a7b3a6df7b83d452baab443d3d90 (diff) | |
download | gitlab-shell-8f0f67622971d1861769a9deac6b102c9fdaed42.tar.gz |
Write GitlabAccess error to stderr.
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/pre-receive | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hooks/pre-receive b/hooks/pre-receive index 7f9c0c0..7e23974 100755 --- a/hooks/pre-receive +++ b/hooks/pre-receive @@ -14,5 +14,8 @@ if GitlabAccess.new(repo_path, key_id, refs).exec && GitlabCustomHook.new.pre_receive(refs, repo_path) exit 0 else + # reset GL_ID env since we stop git push here + ENV['GL_ID'] = nil + exit 1 end |