Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/trace2
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-12-07 10:11:21 +0300
committerJunio C Hamano <gitster@pobox.com>2023-12-09 02:24:46 +0300
commita62712696e76eddebf9b5e0ecf2c9040558584bb (patch)
tree1ea8077024433e2680e4ef74aff3010bdb6b29d9 /trace2
parentba176db511b3438738a4aeb98e574310e697ff5f (diff)
setup: handle NULL value when parsing extensions
The "partialclone" extension config records a string, and hence it is an error to have an implicit bool like: [extensions] partialclone in your config. We should recognize and reject this, rather than segfaulting (which is the current behavior). Note that it's OK to use config_error_nonbool() here, even though the return value is an enum. We explicitly document EXTENSION_ERROR as -1 for compatibility with error(), etc. This is the only extension value that has this problem. Most of the others are bools that interpret this value naturally. The exception is extensions.objectformat, which does correctly check for NULL. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2')
0 files changed, 0 insertions, 0 deletions