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.
GIT_DIR
1 parent 61c3b9a commit 10b1c57Copy full SHA for 10b1c57
private/pkg/git/cloner.go
@@ -76,6 +76,13 @@ func (c *cloner) CloneToBucket(
76
77
depthArg := strconv.Itoa(int(depth))
78
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": "",
84
+ })
85
+
86
baseDir, err := tmp.NewDir(ctx)
87
if err != nil {
88
return err
0 commit comments