Merge branch 'jk/tempfile-ferror-fclose-confusion'
[gitweb.git] / builtin / init-db.c
index 76d68fad001083d85800b937798529a1682959c9..1d4d6a0078919636dfc0ffefa2aec1699a9827f1 100644 (file)
@@ -262,7 +262,7 @@ static int create_default_files(const char *template_path,
                const char *work_tree = get_git_work_tree();
                git_config_set("core.bare", "false");
                /* allow template config file to override the default */
-               if (log_all_ref_updates == -1)
+               if (log_all_ref_updates == LOG_REFS_UNSET)
                        git_config_set("core.logallrefupdates", "true");
                if (needs_work_tree_config(original_git_dir, work_tree))
                        git_config_set("core.worktree", work_tree);