]> git.ipfire.org Git - thirdparty/git.git/commit
check_repository_format_gently: stop using git_config_early
authorJeff King <peff@peff.net>
Fri, 11 Mar 2016 22:36:59 +0000 (17:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Mar 2016 23:02:22 +0000 (15:02 -0800)
commit21627f9b6ddddfeb40a53e116459a86be0520a4e
tree18a88b23f302bbf52a06b67025bbe61bd24c51ed
parentae5f67763b2a3eea7e7675febd8f87bf2f4c1219
check_repository_format_gently: stop using git_config_early

There's a chicken-and-egg problem with using the regular
git_config during the repository setup process. We get
around it here by using a special interface that lets us
specify the per-repo config, and avoid calling
git_pathdup().

But this interface doesn't actually make sense. It will look
in the system and per-user config, too; we definitely would
not want to accept a core.repositoryformatversion from
there.

The git_config_from_file interface is a better match, as it
lets us look at a single file.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c