We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f596246 + 82eaabf commit 6301c2dCopy full SHA for 6301c2d
1 file changed
Library/Homebrew/api_hashable.rb
@@ -10,9 +10,11 @@ def generating_hash!
10
@old_homebrew_prefix = HOMEBREW_PREFIX
11
@old_homebrew_cellar = HOMEBREW_CELLAR
12
@old_home = Dir.home
13
+ @old_git_config_global = ENV.fetch("GIT_CONFIG_GLOBAL", nil)
14
Object.send(:remove_const, :HOMEBREW_PREFIX)
15
Object.const_set(:HOMEBREW_PREFIX, Pathname.new(HOMEBREW_PREFIX_PLACEHOLDER))
16
ENV["HOME"] = HOMEBREW_HOME_PLACEHOLDER
17
+ ENV["GIT_CONFIG_GLOBAL"] = File.join(@old_home, ".gitconfig")
18
19
@generating_hash = true
20
end
@@ -24,6 +26,7 @@ def generated_hash!
24
26
25
27
Object.const_set(:HOMEBREW_PREFIX, @old_homebrew_prefix)
28
ENV["HOME"] = @old_home
29
+ ENV["GIT_CONFIG_GLOBAL"] = @old_git_config_global
30
31
@generating_hash = false
32
0 commit comments