Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.
This repository was archived by the owner on May 31, 2026. It is now read-only.

fix: CRLF-contaminated git tree entries block Windows checkout #52

@KooshaPari

Description

@KooshaPari

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions