Skip to content

fix: Linux compatibility#1

Open
zoon wants to merge 1 commit intoshe-llac:mainfrom
zoon:fix/cross-platform-and-relative-dir
Open

fix: Linux compatibility#1
zoon wants to merge 1 commit intoshe-llac:mainfrom
zoon:fix/cross-platform-and-relative-dir

Conversation

@zoon
Copy link

@zoon zoon commented Feb 22, 2026

  • Canonicalize -d paths with realpath to prevent cp copy-into-self when the worktree target is inside the repo root. Exclude the worktree's top-level dir from the file copy glob as a second safeguard.
  • Replace macOS-only md5/stat invocations in tests with try-and-fallback helpers

Canonicalize -d paths with realpath to prevent cp copy-into-self when
the worktree target is inside the repo root. Exclude the worktree's
top-level dir from the file copy glob as a second safeguard.

Replace macOS-only md5/stat invocations in tests with try-and-fallback
helpers (GNU first, BSD second) matching the project's existing pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant