Skip to content

Commit a0ae497

Browse files
committed
Override Bundler::GemHelper git push to work with boxen.
1 parent 75f8943 commit a0ae497

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Rakefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1+
module Bundler
2+
class GemHelper
3+
def perform_git_push_with_clean_env(options = '')
4+
# Using a clean ENV ensures that ruby-based git credential helpers
5+
# such as that used by boxen will still work:
6+
Bundler.with_clean_env do
7+
perform_git_push_without_clean_env(options)
8+
end
9+
end
10+
11+
alias_method :perform_git_push_without_clean_env, :perform_git_push
12+
alias_method :perform_git_push, :perform_git_push_with_clean_env
13+
end
14+
end
15+
116
require 'bundler/gem_tasks'

0 commit comments

Comments
 (0)