Skip to content

Instantly share code, notes, and snippets.

View joshfrench's full-sized avatar
🙃

Josh French joshfrench

🙃
View GitHub Profile
@joshfrench
joshfrench / push-to-integrity-post-receive
Created July 15, 2009 18:25 — forked from Pistos/push-to-integrity-post-receive
Integrity post-receive hook, safe for git 1.5.x and won't yak on merge commits
#!/usr/bin/env ruby19
require 'net/http'
require 'uri'
require 'json'
# EDIT POST_RECEIVE_URL
POST_RECEIVE_URL = 'http://hostname:8910/repository-name/push'
old_head, new_head, ref = STDIN.gets.split