diff --git a/components/content-service/pkg/initializer/git.go b/components/content-service/pkg/initializer/git.go index 34b5a6fe6bebf7..945f02e22275b9 100644 --- a/components/content-service/pkg/initializer/git.go +++ b/components/content-service/pkg/initializer/git.go @@ -70,7 +70,7 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping) } gitClone := func() error { - if err := os.MkdirAll(ws.Location, 0770); err != nil { + if err := os.MkdirAll(ws.Location, 0755); err != nil { return err } diff --git a/components/supervisor/pkg/supervisor/supervisor.go b/components/supervisor/pkg/supervisor/supervisor.go index 977a87b376b654..20c3092702b24d 100644 --- a/components/supervisor/pkg/supervisor/supervisor.go +++ b/components/supervisor/pkg/supervisor/supervisor.go @@ -1301,7 +1301,7 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst // and we want to make sure it is correct 0755, as otherwise it breaks some workflows. // gitpod session itself is set to 0022, which means any folder we create would already have 0755 // so this change doesn't expand permissions beyond what is already there - repoRoot := os.Getenv("GITPOD_REPO_ROOT") + /*repoRoot := os.Getenv("GITPOD_REPO_ROOT") if repoRoot != "" { if _, err := os.Stat(repoRoot); !os.IsNotExist(err) { err = os.Chmod(repoRoot, os.FileMode(0755)) @@ -1309,7 +1309,7 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst log.WithError(err).WithField("location", repoRoot).Warn("was not able to execute chmod") } } - } + }*/ err = nil return