From: elliottcable Date: Sun, 18 May 2008 06:02:29 +0000 (-0800) Subject: That didn't work, let's try this X-Git-Url: https://repo.or.cz/git-blog.git/commitdiff_plain/8565c2532e0668beee4ae9cfc970cd0eff1512be That didn't work, let's try this --- diff --git a/prepped/post-receive.hook b/prepped/post-receive.hook index 8e81e74..d575149 100644 --- a/prepped/post-receive.hook +++ b/prepped/post-receive.hook @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby +#!/usr/bin/env ruby --trace # require 'rubygems' # require 'git' require 'fileutils' @@ -12,7 +12,7 @@ include FileUtils # Branch = Repo.branches[Refname.split('/')[2..-1].join('/')] # Not sure if I trust this completely... +system 'cd ../ ; git-checkout -f master' # Should force the push to actually go live cd '../' -system 'git-checkout -f master' # Should force the push to actually go live puts 'Re-deploying blog...' system 'rake deploy' \ No newline at end of file