Skip to content

Commit 3d952f3

Browse files
committed
wip
1 parent ffb3233 commit 3d952f3

File tree

1 file changed

+13
-0
lines changed
  • components/content-service/pkg/initializer

1 file changed

+13
-0
lines changed

components/content-service/pkg/initializer/git.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
7676
return err
7777
}
7878

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+
7992
log.WithField("stage", "init").WithField("location", ws.Location).Debug("Running git clone on workspace")
8093
err = ws.Clone(ctx, true)
8194
if err != nil {

0 commit comments

Comments
 (0)