Provide git_config with a callback-data parameter
[gitweb.git] / builtin-init-db.c
index a76f5d3474f9d1e16bfc988ad6fd1d971876fe91..f6aa3535299fdc56ff734c7476fcdfc7475a156d 100644 (file)
@@ -142,7 +142,7 @@ static void copy_templates(const char *git_dir, int len, const char *template_di
        strcpy(template_path + template_len, "config");
        repository_format_version = 0;
        git_config_from_file(check_repository_format_version,
-                            template_path);
+                            template_path, NULL);
        template_path[template_len] = 0;
 
        if (repository_format_version &&
@@ -197,7 +197,7 @@ static int create_default_files(const char *git_dir, const char *template_path)
        path[len] = 0;
        copy_templates(path, len, template_path);
 
-       git_config(git_default_config);
+       git_config(git_default_config, NULL);
 
        /*
         * We would have created the above under user's umask -- under