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.
1 parent 34aca9a commit 369ed44Copy full SHA for 369ed44
components/content-service/pkg/initializer/git.go
@@ -76,6 +76,19 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
76
return err
77
}
78
79
+ args := []string{"-R", "-L", "gitpod", ws.Location}
80
+ cmd := exec.Command("chown", args...)
81
+ res, cerr := cmd.CombinedOutput()
82
+ if cerr != nil && !process.IsNotChildProcess(cerr) {
83
+ err = git.OpFailedError{
84
+ Args: args,
85
+ ExecErr: cerr,
86
+ Output: string(res),
87
+ Subcommand: "chown",
88
+ }
89
+ return err
90
91
+
92
log.WithField("stage", "init").WithField("location", ws.Location).Debug("Running git clone on workspace")
93
err = ws.Clone(ctx, true)
94
if err != nil {
0 commit comments