Problem
Every file in the git tree has a trailing \r (carriage return) in its path, e.g.:
".github\r/CODEOWNERS"
".editorconfig\r"
"scripts/federation/f201_*"
The * wildcard filenames in scripts/federation/ also cause Windows path failures.
This blocks git subtree add on Windows hosts and prevents checkout on case-sensitive NTFS.
Root cause
Likely a git add executed inside a CRLF-mode environment where path names were read from a CRLF-terminated file or shell variable, embedding \r into tree entries.
Fix
On a Linux host, run:
git filter-repo --path-rename '\r':'' --force
# Also rename wildcard files
git filter-repo --path-rename 'scripts/federation/f201_*':'scripts/federation/f201_GLOB' ...
Or use git fast-export | sed 's/\r//' | git fast-import.
Impact
Tracked in phenotype-tooling monorepo absorption: PolicyStack is stubbed at crates/policystack/ pending this fix (merge commit 172ab8f).
Problem
Every file in the git tree has a trailing
\r(carriage return) in its path, e.g.:The
*wildcard filenames inscripts/federation/also cause Windows path failures.This blocks
git subtree addon Windows hosts and prevents checkout on case-sensitive NTFS.Root cause
Likely a
git addexecuted inside a CRLF-mode environment where path names were read from a CRLF-terminated file or shell variable, embedding\rinto tree entries.Fix
On a Linux host, run:
Or use
git fast-export | sed 's/\r//' | git fast-import.Impact
Tracked in phenotype-tooling monorepo absorption: PolicyStack is stubbed at
crates/policystack/pending this fix (merge commit 172ab8f).