From 4f9deebaf3f4f47076f2db059406320d5799cb52 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 6 Aug 2013 16:35:53 +0200 Subject: Allow update.local hook after update.gitlab --- hooks/update.gitlab | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 hooks/update.gitlab (limited to 'hooks/update.gitlab') diff --git a/hooks/update.gitlab b/hooks/update.gitlab new file mode 100755 index 0000000..0979926 --- /dev/null +++ b/hooks/update.gitlab @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +# This file was placed here by GitLab. It makes sure that your pushed commits +# will be processed properly. See the `update` script for instructions on how +# to add your own update hooks. + +refname = ARGV[0] +key_id = ENV['GL_ID'] +repo_path = `pwd` + +require_relative '../lib/gitlab_update' + +GitlabUpdate.new(repo_path, key_id, refname).exec -- cgit v1.2.1