File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ def generating_hash!
10
10
@old_homebrew_prefix = HOMEBREW_PREFIX
11
11
@old_homebrew_cellar = HOMEBREW_CELLAR
12
12
@old_home = Dir . home
13
+ @old_git_config_global = ENV . fetch ( "GIT_CONFIG_GLOBAL" , nil )
13
14
Object . send ( :remove_const , :HOMEBREW_PREFIX )
14
15
Object . const_set ( :HOMEBREW_PREFIX , Pathname . new ( HOMEBREW_PREFIX_PLACEHOLDER ) )
15
16
ENV [ "HOME" ] = HOMEBREW_HOME_PLACEHOLDER
17
+ ENV [ "GIT_CONFIG_GLOBAL" ] = File . join ( @old_home , ".gitconfig" )
16
18
17
19
@generating_hash = true
18
20
end
@@ -24,6 +26,7 @@ def generated_hash!
24
26
Object . send ( :remove_const , :HOMEBREW_PREFIX )
25
27
Object . const_set ( :HOMEBREW_PREFIX , @old_homebrew_prefix )
26
28
ENV [ "HOME" ] = @old_home
29
+ ENV [ "GIT_CONFIG_GLOBAL" ] = @old_git_config_global
27
30
28
31
@generating_hash = false
29
32
end
You can’t perform that action at this time.
0 commit comments