#!/usr/bin/env ruby# This file was placed here by GitLab. It makes sure that your pushed commits# will be processed properly.refs=ARGF.readkey_id=ENV['GL_ID']repo_path=Dir.pwdputsrefsputskey_idputsrepo_path# reset GL_ID env since we already got its valueENV['GL_ID']=nilrequire_relative'../lib/gitlab_custom_hook'require_relative'../lib/gitlab_post_receive'ifGitlabPostReceive.new(repo_path,key_id,refs).exec&&GitlabCustomHook.new.post_receive(refs,repo_path)exit0elseexit1end