-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override Bundler::GemHelper git push to work with boxen.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |