Skip to content

fix: repair corrupted .gitignore with UTF-16 null bytes in venv entry#70

Open
Perfect29 wants to merge 1 commit intosugarlabs:mainfrom
Perfect29:fix/gitignore-corrupted-bytes
Open

fix: repair corrupted .gitignore with UTF-16 null bytes in venv entry#70
Perfect29 wants to merge 1 commit intosugarlabs:mainfrom
Perfect29:fix/gitignore-corrupted-bytes

Conversation

@Perfect29
Copy link
Contributor

The last line of .gitignore (venv/) has null bytes interleaved between each character — looks like it was written in UTF-16 at some point. You can see it in a hex dump:

0x88: 76 00 65 00 6e 00 76 00 2f 00 v.e.n.v./.

This makes git treat the file as binary, and the venv/ pattern doesn't actually work on some git versions.

Fixed by rewriting the file as clean ASCII. Same patterns, no content changes.

Verified with:
python3 -c "print(repr(open('.gitignore').read()))"

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