{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/315","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/315/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/315/events","html_url":"https://github.com/git-for-windows/git/issues/315","id":103011329,"number":315,"title":"Maven: mvn release:prepare changes line endings for core.autocrlf=input","user":{"login":"kriegaex","id":1537384,"avatar_url":"https://avatars.githubusercontent.com/u/1537384?v=3","gravatar_id":"","url":"https://api.github.com/users/kriegaex","html_url":"https://github.com/kriegaex","followers_url":"https://api.github.com/users/kriegaex/followers","following_url":"https://api.github.com/users/kriegaex/following{/other_user}","gists_url":"https://api.github.com/users/kriegaex/gists{/gist_id}","starred_url":"https://api.github.com/users/kriegaex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriegaex/subscriptions","organizations_url":"https://api.github.com/users/kriegaex/orgs","repos_url":"https://api.github.com/users/kriegaex/repos","events_url":"https://api.github.com/users/kriegaex/events{/privacy}","received_events_url":"https://api.github.com/users/kriegaex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/mcve-required","name":"mcve-required","color":"e11d21"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/missing-info","name":"missing-info","color":"e11d21"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/unclear","name":"unclear","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-25T12:28:28Z","updated_at":"2015-08-25T13:04:42Z","closed_at":null,"body":"This is a regression from Git 1.9.5. I do not want my Git to change UNIX line endings to Windows ones even when working on Windows. Git 1.9.5 respected this setting, but in connection with Maven (v3.3.3), Git 2.5.0 does not.\r\n\r\nI think this is a major issue. And please do not blame Maven because the only element on my system which changed was Git.\r\n\r\n**Update:** My Maven POM even uses the *jgit* provider, i.e. I have no idea why the locally installed Git changes the behaviour of Maven. The symptom is that I get full-file diffs for the first of two commits made by Maven."},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/134578570","html_url":"https://github.com/git-for-windows/git/issues/315#issuecomment-134578570","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/315","id":134578570,"user":{"login":"kriegaex","id":1537384,"avatar_url":"https://avatars.githubusercontent.com/u/1537384?v=3","gravatar_id":"","url":"https://api.github.com/users/kriegaex","html_url":"https://github.com/kriegaex","followers_url":"https://api.github.com/users/kriegaex/followers","following_url":"https://api.github.com/users/kriegaex/following{/other_user}","gists_url":"https://api.github.com/users/kriegaex/gists{/gist_id}","starred_url":"https://api.github.com/users/kriegaex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriegaex/subscriptions","organizations_url":"https://api.github.com/users/kriegaex/orgs","repos_url":"https://api.github.com/users/kriegaex/repos","events_url":"https://api.github.com/users/kriegaex/events{/privacy}","received_events_url":"https://api.github.com/users/kriegaex/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T13:04:42Z","updated_at":"2015-08-25T13:04:42Z","body":"Guys, both questions are answered in the subject:\r\n* `mvn release:prepare` implies Maven Release Plugin (v2.5.2, by the way). And as I also said, I use the *jgit* SCM provider.\r\n* `core.autocrlf=input` implies exactly what it says.\r\n\r\nThe Maven output is normal (build success), but the problem symptom is that the first of the two usual commits (change POMs to release version) shows full file diffs due to all files being switched from LF to CRLF line endings (with `core.safecrlf`and `core.eol` unset). The second commit changing the POMs to the next snapshot version shows one-line diffs again because CRLF stays CRLF.\r\n\r\nI will be happy to be less terse if you tell me what else you need to know. But please also carefully read what I have written so as to avoid the need for repetition. Thank you for your swift reaction. "}}