git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: repeated empty section in config of repository

From
Elijah Newren <newren@gmail.com>
Date
Apr 10, 2019, 16:35 UTC
Message-ID
<CABPp-BEvsBqqQMvb8zAPZ8r+=Wd-2VA0eVuM9FJSoogUP=AZOA@mail.gmail.com>
In-Reply-To
<32db4d5189264ab791704cce91d6efaf@bs-ag.com>
On Wed, Apr 10, 2019 at 9:08 AM Kurt Ablinger <kurt.ablinger@bs-ag.com> wrote:
Show 25 quoted lines
>
> 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.

Previous: SZEDER Gábor
Message 3 of 3 in “repeated empty section in config of repository”
  1. Kurt AblingerApr 10, 2019
  2. SZEDER GáborApr 10, 2019
  3. Elijah NewrenApr 10, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.