Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

knotserver/sandbox: pass HOME env on NoopBackend

Signed-off-by: Seongmin Lee <git@boltless.me>

authored by

Seongmin Lee and committed by
Tangled
(Jun 29, 2026, 11:32 PM +0300) e24f63b6 44a382da

+6 -1
+6 -1
knotserver/sandbox/sandbox.go
··· 1 1 package sandbox 2 2 3 - import "os/exec" 3 + import ( 4 + "fmt" 5 + "os" 6 + "os/exec" 7 + ) 4 8 5 9 // Backend wraps git subprocesses in a filesystem sandbox. 6 10 type Backend interface { ··· 13 17 type NoopBackend struct{} 14 18 15 19 func (n *NoopBackend) Wrap(repoPath string, cmd *exec.Cmd) (*exec.Cmd, error) { 20 + cmd.Env = append(cmd.Env, fmt.Sprintf("HOME=%s", os.Getenv("HOME"))) 16 21 cmd.Dir = repoPath 17 22 return cmd, nil 18 23 }