]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-init-db.c
branch: say "Reset to" in reflog entries for 'git branch -f' operations
[git.git] / builtin-init-db.c
index 8e7540b6922696fb8100879eb9c4acf587f004db..186548938193ac125d9d9f89080cec640d0a46e0 100644 (file)
@@ -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;
 }