Skip to content

Document WSL --clone safe.directory workaround for sandboxes#25238

Merged
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:worktree-sbx-wsl-clone-troubleshooting
Jun 3, 2026
Merged

Document WSL --clone safe.directory workaround for sandboxes#25238
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:worktree-sbx-wsl-clone-troubleshooting

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented Jun 2, 2026

Summary

On Windows, sbx run --clone against a repo on a WSL filesystem (\\wsl.localhost\...) fails with --clone requires a Git repository even when the directory is a valid repo. The real cause is Git's dubious-ownership safety check refusing to operate across the WSL boundary, which makes sbx's repo detection fail. This adds a troubleshooting section documenting the safe.directory workaround.

Generated by Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 11be196
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a1fda04326cce0008859858
😎 Deploy Preview https://deploy-preview-25238--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn added the status/review Pull requests that are ready for review label Jun 2, 2026
@dvdksn dvdksn requested a review from a team June 2, 2026 10:56
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The new WSL troubleshooting section is technically accurate, well-structured, and fits naturally within the existing document's tone and scope. The safe.directory workaround and Git configuration syntax are correct. No high or medium issues found.

@dvdksn dvdksn requested a review from rcjsuen June 2, 2026 11:00
@dvdksn dvdksn marked this pull request as ready for review June 2, 2026 11:00
@dvdksn dvdksn force-pushed the worktree-sbx-wsl-clone-troubleshooting branch from fe634f7 to fdcb91d Compare June 3, 2026 06:22
Clone mode fails on \\wsl.localhost\... paths because Git's dubious
ownership check makes sbx's repo detection fail. Add a troubleshooting
section with the safe.directory workaround.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dvdksn dvdksn force-pushed the worktree-sbx-wsl-clone-troubleshooting branch from fdcb91d to 11be196 Compare June 3, 2026 07:38
@dvdksn dvdksn merged commit ffd1e88 into docker:main Jun 3, 2026
14 checks passed
@dvdksn dvdksn deleted the worktree-sbx-wsl-clone-troubleshooting branch June 3, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ai status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants