提交 196055c2 编写于 作者: A Alex Riesen 提交者: Junio C Hamano

Allow default core.logallrefupdates to be overridden with template's config

Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 ae1dffcb
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册