Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 committed May 25, 2022
1 parent cb37f1b commit b6edfd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/content-service/pkg/initializer/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions components/supervisor/pkg/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,15 +1301,15 @@ 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))
if err != nil {
log.WithError(err).WithField("location", repoRoot).Warn("was not able to execute chmod")
}
}
}
}*/

err = nil
return
Expand Down

0 comments on commit b6edfd4

Please sign in to comment.