Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Use git-config to Break your Config File

From: David E. Wheeler <hidden>
Date: 2016-06-15 22:53:39

Gitsters,

I was fooling around and realized that I could assign an empty string as the name of a config section, like so:

    $ git config --rename-section my ''

This leaves the config file looking like this:

    []
        foo = goodbye

Which does not appear to be valid:

    $ git config --get '.foo'          
    fatal: bad config file line 13 in .git/config

So maybe git-config should disallow setting a section to an empty string?

Best,

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help