Fix revert test fail on Windows

Fix revert test fail on Windows.
There is a .gitattributes with `text=auto` inside the repo, so it converts to crlf when checkout the files.