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>
Alex Riesen committed
Jan 23, 2007 at 16:51 UTC
196055c2dbbd8ee41b4afb1c2d035d0c05c963b8
1 file changed
+3
-1
builtin-init-db.c
+3
-1
@@ -257,7 +257,9 @@ static int create_default_files(const char *git_dir, const char *template_path)
257
}
258
else {
259
git_config_set("core.bare", "false");
260
- git_config_set("core.logallrefupdates", "true");
260
+ /* allow template config file to override the default */
261
+ if (log_all_ref_updates == -1)
262
+ git_config_set("core.logallrefupdates", "true");
263
}
264
return reinit;
265
}