Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-01-23 18:51:18 +0300
committerJunio C Hamano <junkio@cox.net>2007-01-25 04:33:25 +0300
commit196055c2dbbd8ee41b4afb1c2d035d0c05c963b8 (patch)
tree4be919f5631246705e9dc89ac5495990e4715a10
parentae1dffcb28ee89a23f8d2747be65e17c8eab1690 (diff)
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>
-rw-r--r--builtin-init-db.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 8e7540b692..1865489381 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;
}