summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibor Pechacek <lpechacek@suse.cz>2011-01-30 19:40:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-22 23:19:45 (GMT)
commitb09c53a3e331211fc0154de8ebb271e48f8c7ee5 (patch)
tree341eeb6f6252abd6bf0d5415efe2afcffc3d4c52 /Documentation
parent597a63054241c122515c93cbce45bc44eb231f18 (diff)
downloadgit-b09c53a3e331211fc0154de8ebb271e48f8c7ee5.zip
git-b09c53a3e331211fc0154de8ebb271e48f8c7ee5.tar.gz
git-b09c53a3e331211fc0154de8ebb271e48f8c7ee5.tar.bz2
Sanity-check config variable names
Sanity-check config variable names when adding and retrieving them. As a side effect code duplication between git_config_set_multivar and get_value (in builtin/config.c) was removed and the common functionality was placed in git_config_parse_key. This breaks a test in t1300 which used invalid section-less keys in the tests for "git -c". However, allowing such names there was useless, since there was no way to set them via config file, and no part of git actually tried to use section-less keys. This patch updates the test to use more realistic examples as well as adding its own test. Signed-off-by: Libor Pechacek <lpechacek@suse.cz> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions