summaryrefslogtreecommitdiff
path: root/t/t4034/perl/pre
diff options
context:
space:
mode:
authorLibravatar Libor Pechacek <lpechacek@suse.cz>2011-02-01 08:13:47 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-02-22 15:19:46 -0800
commit2169ddc056b56deba701cbbba28cdaf2e9821224 (patch)
tree63efb8d26f51e9c09752151e398dfb122eeb2053 /t/t4034/perl/pre
parentSanity-check config variable names (diff)
downloadtgif-2169ddc056b56deba701cbbba28cdaf2e9821224.tar.xz
Disallow empty section and variable names
It is possible to break your repository config by creating an invalid key. The config parser in turn chokes on it: $ git init Initialized empty Git repository in /tmp/gittest/.git/ $ git config .foo false $ git config core.bare fatal: bad config file line 6 in .git/config This patch makes git-config reject keys which start or end with a dot and adds tests for these cases. Signed-off-by: Libor Pechacek <lpechacek@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034/perl/pre')
0 files changed, 0 insertions, 0 deletions