Skip to content

Commit 3edaa62

Browse files
aledbfroboquat
authored andcommitted
Set HOME env variable
1 parent 9fbd4bf commit 3edaa62

File tree

1 file changed

+1
-7
lines changed
  • components/content-service/pkg/git

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,7 @@ func (c *Client) GitWithOutput(ctx context.Context, subcommand string, args ...s
169169
env = append(env, fmt.Sprintf("GIT_AUTH_PASSWORD=%s", pwd))
170170
}
171171

172-
homeDir, err := os.MkdirTemp("", "git")
173-
if err != nil {
174-
return nil, xerrors.Errorf("cannot create temporal directory")
175-
}
176-
defer os.RemoveAll(homeDir)
177-
178-
env = append(env, fmt.Sprintf("HOME=%v", homeDir))
172+
env = append(env, "HOME=/home/gitpod")
179173

180174
fullArgs = append(fullArgs, subcommand)
181175
fullArgs = append(fullArgs, args...)

0 commit comments

Comments
 (0)