Skip to content

Conversation

@msukkari
Copy link
Contributor

Fixes duplicate folders in the file tree caused by non-ASCII characters in file paths.

Git was quoting non-ASCII characters in file paths with octal escape sequences (e.g., "src/\321\202\320\265\321\201\321\202.txt"). The existing parsing logic would then treat "src (with a leading quote) as a distinct folder from src, leading to duplicates. This PR adds -c core.quotePath=false to git ls-tree commands to prevent Git from quoting these paths.


Linear Issue: SOU-74

Open in Cursor Open in Web

Git quotes paths containing non-ASCII characters using octal escape
sequences (e.g., "src/\321\202\320\265\321\201\321\202.txt"). The
previous code split on comma, leaving quotes in the path, which caused
folders like "src" to appear twice (once as "src" and once as '"src').

Fixed by adding -c core.quotePath=false to all git ls-tree commands,
which outputs paths without quoting, preventing duplicate folder entries.

Fixes #SOU-74
@cursor
Copy link

cursor bot commented Jan 10, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Jan 10, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

3 participants