From: elliottcable Date: Sun, 18 May 2008 01:11:41 +0000 (-0800) Subject: Fixed more bugs in the hook X-Git-Url: https://repo.or.cz/git-blog.git/commitdiff_plain/3586a2e63482b54775fbd5ea99fb382c32a32718 Fixed more bugs in the hook --- diff --git a/prepped/post-receive.hook b/prepped/post-receive.hook dissimilarity index 84% index c030b87..8581cc6 100644 --- a/prepped/post-receive.hook +++ b/prepped/post-receive.hook @@ -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