Hi, I have an issue with git-rebase failing on a repository using core.autocrlf=true I've tracked it down to git-am failing with core.autocrlf=true and passing with core.autocrlf=false. I've tried digging deeper into the code, but for some reason ce_match_stat_basic() (read-cache.c:~187) reports the size of the file in the index to be 0 (when core.autocrlf=true), which is why git-am bails out on the patch. (ce->ce_size == 0, while st->st_size == the correct size on disk) If I force the bailout in check_patch() (builtin-apply.c:~2101) to _not_ happen, the patch applies without problems. Can anyone please enlighten me on why this may happen? I've attached a SH script which will reproduce the problem. Simply run ./git_am_crlf_testcase.sh to reproduce the problem, and run ./git_am_crlf_testcase.sh --no-crlf to show it working when core.autocrlf=false. Thanks for your help! -- .marius