Fixed more bugs in the hook
authorelliottcable <[email protected]>
Sun, 18 May 2008 01:11:41 +0000 (17 17:11 -0800)
committerelliottcable <[email protected]>
Sun, 18 May 2008 01:11:41 +0000 (17 17:11 -0800)
prepped/post-receive.hook

dissimilarity index 84%
index c030b87..8581cc6 100644 (file)
@@ -1,16 +1,17 @@
-#!/usr/bin/env ruby
-require 'rubygems'
-require 'git'
-require 'fileutils'
-include FileUtils
-
-Repo = Git.open File.expand_path('../../')
-
-Old     = Repo.object ARGV.shift # aa453216d1b3e49e7f6f98441fa56946ddcd6a20
-New     = Repo.object ARGV.shift # 68f7abf4e6f922807889f52bc043ecd31b79f814
-Refname = ARGV.shift # refs/heads/master
-
-Branch  = Repo.branches[Refname.split('/')[2..-1].join('/')] # Not sure if I trust this completely...
-
-cd '../'
-system 'rake deploy'
\ No newline at end of file
+#!/usr/bin/env ruby
+# require 'rubygems'
+# require 'git'
+require 'fileutils'
+include FileUtils
+
+# Repo = Git.open File.expand_path('../')
+# 
+# Old     = Repo.object(ARGV.shift) # aa453216d1b3e49e7f6f98441fa56946ddcd6a20
+# New     = Repo.object ARGV.shift # 68f7abf4e6f922807889f52bc043ecd31b79f814
+# Refname = ARGV.shift # refs/heads/master
+
+# Branch  = Repo.branches[Refname.split('/')[2..-1].join('/')] # Not sure if I trust this completely...
+
+cd '../'
+puts 'Re-deploying blog...'
+system 'rake deploy'
\ No newline at end of file