summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-receive b/hooks/pre-receive
index 58a628b..6ce5879 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -12,7 +12,7 @@ gl_repository = ENV['GL_REPOSITORY']
def increase_reference_counter(gl_repository, repo_path)
result = GitlabNet.new.pre_receive(gl_repository)
- result['reference_counter_increased']
+ result && result['reference_counter_increased']
end
require_relative '../lib/gitlab_custom_hook'