Skip to content

Instantly share code, notes, and snippets.

@Zordrak
Created June 20, 2014 12:25
Show Gist options
  • Save Zordrak/696846ddddfa081283a0 to your computer and use it in GitHub Desktop.
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
#!/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