From: Alex Riesen Date: Tue, 23 Jan 2007 15:51:18 +0000 (+0100) Subject: Allow default core.logallrefupdates to be overridden with template's config X-Git-Tag: v1.5.0-rc3~66 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=196055c2dbbd8ee41b4afb1c2d035d0c05c963b8;p=git.git Allow default core.logallrefupdates to be overridden with template's config Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/builtin-init-db.c b/builtin-init-db.c index 8e7540b69..186548938 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -257,7 +257,9 @@ static int create_default_files(const char *git_dir, const char *template_path) } else { git_config_set("core.bare", "false"); - git_config_set("core.logallrefupdates", "true"); + /* allow template config file to override the default */ + if (log_all_ref_updates == -1) + git_config_set("core.logallrefupdates", "true"); } return reinit; }