[hibernate-dev] [Validator] CRLF Git issue

Emmanuel Bernard emmanuel at hibernate.org
Mon May 26 03:58:28 EDT 2014


I had a strange problem this morning.
It was based on a earlier commit of Hibernate Validator from May 2nd
6bbe986b0ce8e309e23a811db919ce760ae58589

    warning: CRLF will be replaced by LF in
    engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/PatternValidator.java.
    The file will have its original line endings in your working directory.


I had the following warning and whatever I tried (stash, reset --hard
etc) I could not get it fixed. I could have used

    git config core.autocrlf false

But it feels like hiding the problem. I ended up with a clean clone.
Do you guys have any idea of what went wrong? If I checkout the infamous
commit, the error reappears.

Emmanuel

PS: I felt like that
http://toub.es/2012/05/28/fatal-crlf-would-be-replaced-lf
In fact, I even forgot what I was supposed to check in the first place
;)


More information about the hibernate-dev mailing list