Fix git pull on deploy

This commit is contained in:
Paulus Schoutsen 2015-12-19 22:16:15 -08:00
parent def9ae38c4
commit 2e46db93bd

View File

@ -253,7 +253,7 @@ multitask :push do
puts "## Deploying branch to Github Pages "
puts "## Pulling any updates from Github Pages "
cd "#{deploy_dir}" do
Bundler.with_clean_env { system "git pull" }
system "git checkout origin gh-pages"
end
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
Rake::Task[:copydot].invoke(public_dir, deploy_dir)