Skip to content

Commit

Permalink
Allow default core.logallrefupdates to be overridden with template's …
Browse files Browse the repository at this point in the history
…config

Signed-off-by: Alex Riesen <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
raalkml authored and Junio C Hamano committed Jan 25, 2007
1 parent ae1dffc commit 196055c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin-init-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 196055c

Please sign in to comment.