File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,12 @@ func (c *cloner) CloneToBucket(
76
76
77
77
depthArg := strconv .Itoa (int (depth ))
78
78
79
- // In the case where this is being run in an environment where GIT_DIR is set, e.g. within
80
- // a submodule, we want to treat this as a stand-alone clone rather than interacting with
81
- // an existing GIT_DIR. So we filter out GIT_DIR from our environment variables.
82
- filteredEnv := make (map [string ]string )
83
- envContainer .ForEachEnv (func (key , value string ) {
84
- if key != "GIT_DIR" {
85
- filteredEnv [key ] = value
86
- }
79
+ envContainer = app .NewEnvContainerWithOverrides (envContainer , map [string ]string {
80
+ // In the case where this is being run in an environment where GIT_DIR is set, e.g. within
81
+ // a submodule, we want to treat this as a stand-alone clone rather than interacting with
82
+ // an existing GIT_DIR. So we filter out GIT_DIR from our environment variables.
83
+ "GIT_DIR" : "" ,
87
84
})
88
- envContainer = app .NewEnvContainer (filteredEnv )
89
85
90
86
baseDir , err := tmp .NewDir (ctx )
91
87
if err != nil {
You can’t perform that action at this time.
0 commit comments