diff options
author | Xavier Shay <xavier@rhnh.net> | 2013-08-10 17:50:44 -0700 |
---|---|---|
committer | Xavier Shay <xavier@rhnh.net> | 2013-08-18 14:31:10 -0700 |
commit | d8437838ca48b6204dffb5b9f302a37ef5026ac5 (patch) | |
tree | f55a598ceb1fa173a34e4d25e1dff09009d3d90a /spec/support/builders.rb | |
parent | 12eee6adc99fac9074c223e52c643ee59932dedf (diff) | |
download | bundler-d8437838ca48b6204dffb5b9f302a37ef5026ac5.tar.gz |
Ignore git path configuration in env when shelling out to git.
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r-- | spec/support/builders.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 856f0479cc..05c09a0b44 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -1,3 +1,5 @@ +require 'bundler/shared_helpers' + module Spec module Builders def self.constantize(name) @@ -588,7 +590,9 @@ module Spec private def git(cmd) - Dir.chdir(@path) { `git #{cmd}`.strip } + Bundler::SharedHelpers.with_clean_git_env do + Dir.chdir(@path) { `git #{cmd}`.strip } + end end end |