Allow default core.logallrefupdates to be overridden with template's config
Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
ae1dffcb28
commit
196055c2db
@ -257,7 +257,9 @@ static int create_default_files(const char *git_dir, const char *template_path)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
git_config_set("core.bare", "false");
|
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;
|
return reinit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user