Use git-config to Break your Config File

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]