Re: [PATCH 1/2] Complain in the tests about git config not failing with, keys without a section

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

 



On 02-03-2012 19:40, Junio C Hamano wrote:
git is supposed to fail when having a key without a section, but does not.
I do not think anybody said it is supposed to fail in this case.

the behaviour for a single level name is just "undefined", which is very different from "must fail".

Quoting from `git help config`:
This command will fail if:
 3. no section was provided,
...
under SYNTAX
Each variable must belong to some section, which means that there must be a section header before the first
       setting of a variable.

--
Greeting
Rune Philosof
--
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]