{"action":"created","issue":{"url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/64","repository_url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin","labels_url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/64/comments","events_url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/64/events","html_url":"https://github.com/archimatetool/archi-modelrepository-plugin/issues/64","id":367110186,"node_id":"MDU6SXNzdWUzNjcxMTAxODY=","number":64,"title":"[Bug] Empty commits","user":{"login":"jbsarrodie","id":5757396,"node_id":"MDQ6VXNlcjU3NTczOTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5757396?v=4","gravatar_id":"","url":"https://api.github.com/users/jbsarrodie","html_url":"https://github.com/jbsarrodie","followers_url":"https://api.github.com/users/jbsarrodie/followers","following_url":"https://api.github.com/users/jbsarrodie/following{/other_user}","gists_url":"https://api.github.com/users/jbsarrodie/gists{/gist_id}","starred_url":"https://api.github.com/users/jbsarrodie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbsarrodie/subscriptions","organizations_url":"https://api.github.com/users/jbsarrodie/orgs","repos_url":"https://api.github.com/users/jbsarrodie/repos","events_url":"https://api.github.com/users/jbsarrodie/events{/privacy}","received_events_url":"https://api.github.com/users/jbsarrodie/received_events","type":"User","site_admin":false},"labels":[{"id":554614946,"node_id":"MDU6TGFiZWw1NTQ2MTQ5NDY=","url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-10-05T08:30:12Z","updated_at":"2018-10-07T14:01:41Z","closed_at":null,"author_association":"MEMBER","body":"_Summary of our email discussion_\r\n\r\nI (and colleagues) faced a strange bug sometimes: we're asked to create a commit but in fact there are no changes and this lead to an empty commit. I don't know how to reproduce it on demand, but I can share a (private) repo that has such empty commit on its history.\r\n\r\n>_Phil's answer_\r\nThis can happen if the internal (Archi Ecore) model version number is updated [...] Or it might be a line-endings problem (CRLF vs LF). Can you check the commit in SmartGit and see if anything changed? But certainly git is seeing some difference otherwise it won't commit.\r\n\r\nThis was certainly not the internal model version number as it happens frequently enough. I first though it was line-ending problems but this also happens in a windows only context, so I'm not sure it's the root cause.\r\n\r\n_Some screenshots of empty commit seen through SmartGit have been exchanged through emails_\r\n\r\nIt seems that jGit implementation is able to commit \"nothing\"."},"comment":{"url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/comments/427655913","html_url":"https://github.com/archimatetool/archi-modelrepository-plugin/issues/64#issuecomment-427655913","issue_url":"https://api.github.com/repos/archimatetool/archi-modelrepository-plugin/issues/64","id":427655913,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY1NTkxMw==","user":{"login":"Phillipus","id":600504,"node_id":"MDQ6VXNlcjYwMDUwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/600504?v=4","gravatar_id":"","url":"https://api.github.com/users/Phillipus","html_url":"https://github.com/Phillipus","followers_url":"https://api.github.com/users/Phillipus/followers","following_url":"https://api.github.com/users/Phillipus/following{/other_user}","gists_url":"https://api.github.com/users/Phillipus/gists{/gist_id}","starred_url":"https://api.github.com/users/Phillipus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phillipus/subscriptions","organizations_url":"https://api.github.com/users/Phillipus/orgs","repos_url":"https://api.github.com/users/Phillipus/repos","events_url":"https://api.github.com/users/Phillipus/events{/privacy}","received_events_url":"https://api.github.com/users/Phillipus/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T14:01:41Z","updated_at":"2018-10-07T14:01:41Z","author_association":"MEMBER","body":"Setting autocrlf to \"input\" and writing all XML files with UNIX line endings seems to fix the problem.\r\n\r\nI've made it so that new repos will have this setting, but existing ones will have to manually change the local config file to:\r\n\r\n[core]\r\nautocrlf = input\r\n\r\nThe only issue is that if you change this for an existing repo which previously used CRLF you'll get an initial diff of line endings as before. But aborting the changes and trying again seems to clear it."}}
{"actor":{"display_login":"Phillipus"}}