Skip to content

[FIX]: Force LF line endings for helpdesk mitigation.patch on Windows#13

Open
sumit1kr wants to merge 3 commits into
microsoft:mainfrom
sumit1kr:fix/crlf-patch-line-endings
Open

[FIX]: Force LF line endings for helpdesk mitigation.patch on Windows#13
sumit1kr wants to merge 3 commits into
microsoft:mainfrom
sumit1kr:fix/crlf-patch-line-endings

Conversation

@sumit1kr

@sumit1kr sumit1kr commented Jun 3, 2026

Copy link
Copy Markdown

Closes #12

test_patch fails on Windows because git apply converts LF to CRLF,
causing a byte-level mismatch in the patch round-trip test.

Adding helpdesk-bot/mitigation.patch text eol=lf to .gitattributes
forces Git to preserve LF on all platforms, fixing the test on Windows
without affecting any other files.

@sumit1kr sumit1kr requested a review from a team June 3, 2026 12:10
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.

test_patch fails on Windows due to CRLF line ending mismatch

1 participant