File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,12 @@ func (c *cloner) CloneToBucket(
77
77
depthArg := strconv .Itoa (int (depth ))
78
78
79
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" : "" ,
80
+ // In the case where this is being run in an environment where GIT_DIR and GIT_INDEX_FILE
81
+ // are set, e.g. within a submodule, we want to treat this as a stand-alone, non-bare
82
+ // clone rather than interacting with an existing GIT_DIR and GIT_INDEX_FILE.
83
+ // So we filter out GIT_DIR and GIT_INDEX_FILE from our environment variables.
84
+ "GIT_DIR" : "" ,
85
+ "GIT_INDEX_FILE" : "" ,
84
86
})
85
87
86
88
baseDir , err := tmp .NewDir (ctx )
You can’t perform that action at this time.
0 commit comments