]> git.ipfire.org Git - thirdparty/git.git/commit
config: really treat missing optional path as not configured
authorJunio C Hamano <gitster@pobox.com>
Thu, 20 Nov 2025 19:45:35 +0000 (11:45 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Nov 2025 01:00:47 +0000 (17:00 -0800)
commit0bd16856ffb3968de73699ad0555d1fae6c45406
tree9d2c78d62c1e4588bd54ae78a59205747af6500c
parentce1a5a22a5beefac8a52da518855b5aecc562874
config: really treat missing optional path as not configured

These callers expect that git_config_pathname() that returns 0 is a
signal that the variable they passed has a string they need to act
on.  But with the introduction of ":(optional)path" earlier, that is
no longer the case.  If the path specified by the configuration
variable is missing, their variable will get a NULL in it, and they
need to act on it (often, just refraining from copying it elsewhere).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
builtin/receive-pack.c
fetch-pack.c
fsck.c
gpg-interface.c
setup.c