Skip to content

Commit

Permalink
Override Bundler::GemHelper git push to work with boxen.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaylock committed Feb 9, 2015
1 parent 75f8943 commit a0ae497
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
module Bundler
class GemHelper
def perform_git_push_with_clean_env(options = '')
# Using a clean ENV ensures that ruby-based git credential helpers
# such as that used by boxen will still work:
Bundler.with_clean_env do
perform_git_push_without_clean_env(options)
end
end

alias_method :perform_git_push_without_clean_env, :perform_git_push
alias_method :perform_git_push, :perform_git_push_with_clean_env
end
end

require 'bundler/gem_tasks'

0 comments on commit a0ae497

Please sign in to comment.