Skip to content

Commit c977b91

Browse files
committed
Merge pull request imathis#1609 from alindeman/patch-1
Fixes load path issues with ruby-based git credential helpers
2 parents 4fdae37 + 00d1591 commit c977b91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ multitask :push do
253253
puts "## Deploying branch to Github Pages "
254254
puts "## Pulling any updates from Github Pages "
255255
cd "#{deploy_dir}" do
256-
system "git pull"
256+
Bundler.with_clean_env { system "git pull" }
257257
end
258258
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
259259
Rake::Task[:copydot].invoke(public_dir, deploy_dir)
@@ -265,7 +265,7 @@ multitask :push do
265265
puts "\n## Committing: #{message}"
266266
system "git commit -m \"#{message}\""
267267
puts "\n## Pushing generated #{deploy_dir} website"
268-
system "git push origin #{deploy_branch}"
268+
Bundler.with_clean_env { system "git push origin #{deploy_branch}" }
269269
puts "\n## Github Pages deploy complete"
270270
end
271271
end

0 commit comments

Comments
 (0)