Skip to content

Commit

Permalink
Fix switch of line ending style when rebuilding example project on Wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
bkoelman committed Feb 2, 2024
1 parent e8e4796 commit b2ee92b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# When running OpenAPI tests, these committed files are downloaded and written to disk (so we'll know when something changes).
# On Windows, these text files are auto-converted to crlf on fetch, while the written downloaded files use lf line endings.
# On Windows, these text files are auto-converted to crlf on git fetch, while the written downloaded files use lf line endings.
# Therefore, running the tests on Windows creates local changes. Staging them auto-converts back to crlf, which undoes the changes.
# To avoid this annoyance, the next line opts out of the auto-conversion and forces to lf.
# To avoid this annoyance, the next lines opt out of the auto-conversion and force to lf.
swagger.g.json text eol=lf
**/GeneratedSwagger/*.json text eol=lf

0 comments on commit b2ee92b

Please sign in to comment.