From 07061aceb7ed0340c54d78799ab64eb840c2f97a Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 8 Mar 2026 21:47:56 +0000 Subject: fix(executor): use --no-hardlinks for sandbox git clone git clone --local fails with "Invalid cross-device link" when /workspace and /tmp are on different filesystems. --no-hardlinks forces object copying instead, which works across devices. Co-Authored-By: Claude Sonnet 4.6 --- internal/executor/claude.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/executor/claude.go') diff --git a/internal/executor/claude.go b/internal/executor/claude.go index e504369..683de87 100644 --- a/internal/executor/claude.go +++ b/internal/executor/claude.go @@ -172,7 +172,7 @@ func setupSandbox(projectDir string) (string, error) { if err := os.Remove(tempDir); err != nil { return "", fmt.Errorf("removing temp dir placeholder: %w", err) } - out, err := exec.Command("git", "clone", "--local", projectDir, tempDir).CombinedOutput() + out, err := exec.Command("git", "clone", "--no-hardlinks", projectDir, tempDir).CombinedOutput() if err != nil { return "", fmt.Errorf("git clone: %w\n%s", err, out) } -- cgit v1.2.3