From 6f4c842bdf2b346777823fdf683ada5a8875fad8 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Mon, 27 Jun 2011 18:17:15 -0400 Subject: [PATCH] fixed a bug in init_deploy task --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f3903a9..398ddbb 100644 --- a/Rakefile +++ b/Rakefile @@ -117,12 +117,13 @@ end desc "setup _deploy folder and deploy branch" task :init_deploy, :branch do |t, args| puts "Please provide a deploy branch, eg. rake init_deploy[gh-pages]" unless args.branch - cd "#{_deploy}" do + cd "#{deploy_dir}" do system "git symbolic-ref HEAD refs/heads/#{args.branch}" system "rm .git/index" system "git clean -fdx" system "touch README && echo 'initial commit' >> README" system "git add ." + system "git commit -m 'Setup for deploy with Octopress'" system "git push origin #{args.branch}" end end