Skip to content

Commit 00d1591

Browse files
committed
Fixes load path issues with ruby-based git credential helpers
Otherwise, we get errors like this (with boxen, e.g.): ``` /opt/boxen/bin/boxen-git-credential:23:in `require': cannot load such file -- boxen/config (LoadError) from /opt/boxen/bin/boxen-git-credential:23:in `<main>' Username for 'https://github.com': ```
1 parent 4fdae37 commit 00d1591

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)