Bug (?) in setting values with git-repo-config

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

 



Currently there is no way to set up configuration variable to a value with
preceding whitespace, trailing whitespace, or one of comment delimiters
('#' or ';'). And one can't use "..." for that, because even encompassing
doublequotes gets escaped.

I think that git-repo-config should detect if value needs to be quoted, and
do that automatically...

$ declare -x GIT_CONFIG=gitconf
$ git repo-config section.key "value with # inside" 
$ git repo-config --get section.key                    
value with
$ git repo-config section.key2 '"value with # inside"'
$ git repo-config --get section.key2 
"value with
$ cat gitconf 
[section]
        key = value with # inside
        key2 = \"value with # inside\"

(and the value should be:
        keyn = "value with # inside"
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


-
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]