aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorParker Moore <parkrmoore@gmail.com>2014-07-19 19:35:13 -0400
committerParker Moore <parkrmoore@gmail.com>2014-07-19 19:35:13 -0400
commitc977b91e40b481b5f3c3f1d0bad5797c64571ccf (patch)
tree9dd532764efa57b112d7f750b590ac26bbd16be3 /Rakefile
parent4fdae37e4294618084f652c99c0c06ba7663ac07 (diff)
parent00d15913220b25ebe55c581d557069d6833cf44b (diff)
downloadmy_new_personal_website-c977b91e40b481b5f3c3f1d0bad5797c64571ccf.tar.xz
my_new_personal_website-c977b91e40b481b5f3c3f1d0bad5797c64571ccf.zip
Merge pull request #1609 from alindeman/patch-1
Fixes load path issues with ruby-based git credential helpers
Diffstat (limited to '')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 7c15332e..81a03dfd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -253,7 +253,7 @@ multitask :push do
puts "## Deploying branch to Github Pages "
puts "## Pulling any updates from Github Pages "
cd "#{deploy_dir}" do
- system "git pull"
+ Bundler.with_clean_env { system "git pull" }
end
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
Rake::Task[:copydot].invoke(public_dir, deploy_dir)
@@ -265,7 +265,7 @@ multitask :push do
puts "\n## Committing: #{message}"
system "git commit -m \"#{message}\""
puts "\n## Pushing generated #{deploy_dir} website"
- system "git push origin #{deploy_branch}"
+ Bundler.with_clean_env { system "git push origin #{deploy_branch}" }
puts "\n## Github Pages deploy complete"
end
end