Skip to content

Commit ff75159

Browse files
committed
Workaround for running OpenAPI tests on Windows
1 parent bb88af6 commit ff75159

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 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.
3+
# 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.
5+
swagger.g.json text eol=lf

0 commit comments

Comments
 (0)