rev-list --left-right
[gitweb.git] / builtin-init-db.c
index 8f2b7500dc339a275673c0a0c1b1b3e3e4f5301b..1d7d15e8d53a7a2817ceff6f5c5e056747688c9e 100644 (file)
@@ -242,6 +242,9 @@ static int create_default_files(const char *git_dir, const char *template_path)
                               filemode ? "true" : "false");
        }
 
+       /* Enable logAllRefUpdates if a working tree is attached */
+       if (!is_bare_git_dir(git_dir))
+               git_config_set("core.logallrefupdates", "true");
        return reinit;
 }