Commit 71b7eac2 authored by Douwe Maan's avatar Douwe Maan

Merge branch '138-fix-pre-receive-hook' into 'master'

Resolve "NoMethodError for nil in pre-receive hook"

Closes #138

See merge request gitlab-org/gitlab-shell!206
parents c585ee5d 583f5bb4
...@@ -12,7 +12,7 @@ gl_repository = ENV['GL_REPOSITORY'] ...@@ -12,7 +12,7 @@ gl_repository = ENV['GL_REPOSITORY']
def increase_reference_counter(gl_repository, repo_path) def increase_reference_counter(gl_repository, repo_path)
result = GitlabNet.new.pre_receive(gl_repository) result = GitlabNet.new.pre_receive(gl_repository)
result['reference_counter_increased'] result && result['reference_counter_increased']
end end
require_relative '../lib/gitlab_custom_hook' 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