Another tweak
[git-blog.git] / prepped / post-receive.hook
blob954b2b436b9d72e4504ed3dd1fb9c4265971e056
1 #!/usr/bin/env ruby
2 # require 'rubygems'
3 # require 'git'
4 require 'fileutils'
5 include FileUtils
7 # Repo = Git.open File.expand_path('../')
8 #
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 puts pwd # wtf is going on
16 system 'pwd' # wtf is going on
18 system 'cd ../ ; git-checkout -f master' # Should force the push to actually go live
19 cd '../'
20 puts 'Re-deploying blog...'
21 system 'rake deploy'