summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-06 12:26:58 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-06 13:08:47 +0200
commit8f0f67622971d1861769a9deac6b102c9fdaed42 (patch)
tree8c1d3e3a75bb0fad6072323a1b92594ae4a707f8 /hooks
parent63efd0927224a7b3a6df7b83d452baab443d3d90 (diff)
downloadgitlab-shell-8f0f67622971d1861769a9deac6b102c9fdaed42.tar.gz
Write GitlabAccess error to stderr.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-receive3
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