From: Elijah Newren Date: Wed, 10 Apr 2019 16:35:53 GMT Subject: Re: repeated empty section in config of repository Message-ID: In-Reply-To: <32db4d5189264ab791704cce91d6efaf@bs-ag.com> On Wed, Apr 10, 2019 at 9:08 AM Kurt Ablinger wrote: > > Hello, > > I am not sure if this can be problem - at least it is proably not correct: > > when adding a key to an empty section and deleting the key so that the section is empty again, > every add adds the section-name again - example: > > git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config > [gc] > > git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config > [gc] > [gc] > > git config gc.autoDetach false ; git config --unset gc.autoDetach ; cat config > [gc] > [gc] > [gc] > > Git-version is 2.17.0 > Linux - Cent/OS: 2.6.32-754.10.1.el6.x86_64 - GNU/Linux > > Greetings > Kurt I believe this was fixed by 4f4d0b42bae8 ("Merge branch 'js/empty-config-section-fix'", 2018-05-08) in git-2.18.0.