Skip to content

Instantly share code, notes, and snippets.

View jsanti's full-sized avatar

Jorge Santiago jsanti

  • Medellín, Colombia
View GitHub Profile
@jsanti
jsanti / push-to-integrity-post-receive
Created May 27, 2009 04:32 — forked from Pistos/push-to-integrity-post-receive
Integrity git post-receive hook (Ruby 1.8)
#!/usr/bin/env ruby
require 'rubygems'
require 'net/http'
require 'json'
# EDIT POST_RECEIVE_URL
POST_RECEIVE_URL = 'http://hostname:8910/repository-name/push'
old_head, new_head, ref = ARGV