Re-organized the deafult stuff a bit
[git-blog.git] / prepped / post-recieve.hook
blob3c102d6ffd297735b0b1d98e3e708f7c5046c82c
1 #!/usr/bin/env ruby
2 require 'rubygems'
3 require 'git'
4 require 'fileutils'
5 include FileUtils
7 Repo = Git.open File.expand_path('../../')
9 Old = Repo.object ARGV.shift # aa453216d1b3e49e7f6f98441fa56946ddcd6a20
10 New = Repo.object ARGV.shift # 68f7abf4e6f922807889f52bc043ecd31b79f814
11 Refname = ARGV.shift # refs/heads/master
13 Branch = Repo.branches[Refname.split('/')[2..-1].join('/')] # Not sure if I trust this completely...
15 cd '../../'
16 system 'rake deploy'