{"thread":{"id":"50909","subject":"repeated empty section in config of repository","startedAt":"2019-04-10T11:51:08Z","lastAt":"2019-04-10T16:36:07Z","messageCount":3,"participants":["Kurt Ablinger","SZEDER Gábor","Elijah Newren"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"373578","messageId":"32db4d5189264ab791704cce91d6efaf@bs-ag.com","threadId":"50909","inReplyTo":null,"subject":"repeated empty section in config of repository","fromName":"Kurt Ablinger","fromEmail":"kurt.ablinger@bs-ag.com","sentAt":"2019-04-10T11:51:03Z","receivedAt":"2019-04-10T11:51:08Z","isPatch":false,"sender":{"key":"kurt.ablinger@bs-ag.com","avatar":null},"body":"Hello, \n\nI am not sure if this can be problem - at least it is proably not correct:\n\nwhen adding a key to an empty section and deleting the key so that the section is empty again,\nevery add adds the section-name again - example:\n\ngit config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n[gc]\n\ngit config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n[gc]\n[gc]\n\ngit config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n[gc]\n[gc]\n[gc]\n\nGit-version is 2.17.0\nLinux - Cent/OS: 2.6.32-754.10.1.el6.x86_64 - GNU/Linux\n\nGreetings\nKurt\n\n"},{"id":"373582","messageId":"20190410145721.GI8796@szeder.dev","threadId":"50909","inReplyTo":"32db4d5189264ab791704cce91d6efaf@bs-ag.com","subject":"Re: repeated empty section in config of repository","fromName":"SZEDER Gábor","fromEmail":"szeder.dev@gmail.com","sentAt":"2019-04-10T14:57:21Z","receivedAt":"2019-04-10T14:57:27Z","isPatch":false,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"On Wed, Apr 10, 2019 at 11:51:03AM +0000, Kurt Ablinger wrote:\n> Hello, \n> \n> I am not sure if this can be problem - at least it is proably not correct:\n> \n> when adding a key to an empty section and deleting the key so that the section is empty again,\n> every add adds the section-name again - example:\n> \n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n> \n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n> [gc]\n> \n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n> [gc]\n> [gc]\n> \n> Git-version is 2.17.0\n> Linux - Cent/OS: 2.6.32-754.10.1.el6.x86_64 - GNU/Linux\n\nThis was a known issue, but not a serious one, in the sense that it\ndidn't affect correctness of configuration parsing.\n\nIt was mostly fixed in v2.18.0.\n\n\n"},{"id":"373593","messageId":"CABPp-BEvsBqqQMvb8zAPZ8r+=Wd-2VA0eVuM9FJSoogUP=AZOA@mail.gmail.com","threadId":"50909","inReplyTo":"32db4d5189264ab791704cce91d6efaf@bs-ag.com","subject":"Re: repeated empty section in config of repository","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2019-04-10T16:35:53Z","receivedAt":"2019-04-10T16:36:07Z","isPatch":false,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"On Wed, Apr 10, 2019 at 9:08 AM Kurt Ablinger <kurt.ablinger@bs-ag.com> wrote:\n>\n> Hello,\n>\n> I am not sure if this can be problem - at least it is proably not correct:\n>\n> when adding a key to an empty section and deleting the key so that the section is empty again,\n> every add adds the section-name again - example:\n>\n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n>\n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n> [gc]\n>\n> git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config\n> [gc]\n> [gc]\n> [gc]\n>\n> Git-version is 2.17.0\n> Linux - Cent/OS: 2.6.32-754.10.1.el6.x86_64 - GNU/Linux\n>\n> Greetings\n> Kurt\n\nI believe this was fixed by 4f4d0b42bae8 (\"Merge branch\n'js/empty-config-section-fix'\", 2018-05-08) in git-2.18.0.\n"}]}