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