Commit 583f5bb4 authored by Nick Thomas's avatar Nick Thomas

Fix a NoMethodError in the pre-receive hook

parent c585ee5d
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment