Skip to content

Commit b2ee92b

Browse files
committed
Fix switch of line ending style when rebuilding example project on Windows
1 parent e8e4796 commit b2ee92b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.gitattributes

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# When running OpenAPI tests, these committed files are downloaded and written to disk (so we'll know when something changes).
2-
# On Windows, these text files are auto-converted to crlf on fetch, while the written downloaded files use lf line endings.
2+
# On Windows, these text files are auto-converted to crlf on git fetch, while the written downloaded files use lf line endings.
33
# Therefore, running the tests on Windows creates local changes. Staging them auto-converts back to crlf, which undoes the changes.
4-
# To avoid this annoyance, the next line opts out of the auto-conversion and forces to lf.
4+
# To avoid this annoyance, the next lines opt out of the auto-conversion and force to lf.
55
swagger.g.json text eol=lf
6+
**/GeneratedSwagger/*.json text eol=lf

0 commit comments

Comments
 (0)