Created
June 20, 2014 12:25
-
-
Save Zordrak/696846ddddfa081283a0 to your computer and use it in GitHub Desktop.
/home/git/repositories/tools/clubs-deploy.git/hooks/update -> /home/git/gitlab-shell/hooks/update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This file was placed here by GitLab. It makes sure that your pushed commits | |
# will be processed properly. | |
# You can add your own hooks to this file, but be careful when updating gitlab-shell! | |
# Added for debug | |
puts RUBY_VERSION | |
refname = ARGV[0] | |
key_id = ENV['GL_ID'] | |
repo_path = Dir.pwd | |
require_relative '../lib/gitlab_update' | |
GitlabUpdate.new(repo_path, key_id, refname).exec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment