summaryrefslogtreecommitdiff
path: root/internal/executor
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-08 21:47:56 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-08 21:47:56 +0000
commit07061aceb7ed0340c54d78799ab64eb840c2f97a (patch)
treeedde9a825cb4bc6accaf3e4cf0794787ab8d1c6f /internal/executor
parenta6926b80283bbe855bb617be0dbdbaa9968f62f8 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor')
-rw-r--r--internal/executor/claude.go2
1 files changed, 1 insertions, 1 deletions
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)
}