threads / bug / 39966

Bug? git config and --unset are not inverses

Subject: Bug? git config and --unset are not inverses

## tl;dr

3 messages between Jul 29, 2015 and Jul 29, 2015.

replies: 2people: 2as markdown or json

Dave Borowitz· Jul 29, 2015, 18:59 UTC · lore

It looks like git config --unset may leave an orphaned section, but a subsequent set adds a new section:

$ git config --file=myconfig section.foo true
$ git config --file=myconfig --unset section.foo
$ cat myconfig
[section]
$ git config --file=myconfig section.foo true
$ cat myconfig
[section]
[section]
       foo = true
$ git --version
git version 2.5.0.rc2.392.g76e840b
Junio C Hamano· Jul 29, 2015, 19:02 UTC · re: Dave Borowitz · lore

Re: Bug? git config and --unset are not inverses

Dave Borowitz <dborowitz@google.com> writes:
> It looks like git config --unset may leave an orphaned section, but a
> subsequent set adds a new section:
Old news known for at least several years.  Patches welcome ;-)

← back to recent threads