diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-27 18:17:15 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-27 18:17:15 -0400 |
commit | 6f4c842bdf2b346777823fdf683ada5a8875fad8 (patch) | |
tree | 1e002ac5171f1ce08ef43d56ddb02bcac563ebff | |
parent | 62c9780c677a2750d8942773dffedbb1045a8f4b (diff) | |
download | my_new_personal_website-6f4c842bdf2b346777823fdf683ada5a8875fad8.tar.xz my_new_personal_website-6f4c842bdf2b346777823fdf683ada5a8875fad8.zip |
fixed a bug in init_deploy task
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |