Skip to content

Instantly share code, notes, and snippets.

@mkroman
Forked from ryanflorence/post-receive.rb
Created August 21, 2010 18:52
Show Gist options
  • Save mkroman/542693 to your computer and use it in GitHub Desktop.
Save mkroman/542693 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# encoding: utf-8
oldrev, newrev, refname = gets.split
repository = File.expand_path($0)[/([^\/]*?)\.git/]
refs, type, name = refname.split ?/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment