]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/index-pack.c
config: pass kvi to die_bad_number()
[thirdparty/git.git] / builtin / index-pack.c
index de8884ea5c2a2b6d47c7eaa5a88bdf167daaed61..e428f6d9a4a13a139935508a564b8d1de7053095 100644 (file)
@@ -1587,13 +1587,13 @@ static int git_index_pack_config(const char *k, const char *v,
        struct pack_idx_option *opts = cb;
 
        if (!strcmp(k, "pack.indexversion")) {
-               opts->version = git_config_int(k, v);
+               opts->version = git_config_int(k, v, ctx->kvi);
                if (opts->version > 2)
                        die(_("bad pack.indexVersion=%"PRIu32), opts->version);
                return 0;
        }
        if (!strcmp(k, "pack.threads")) {
-               nr_threads = git_config_int(k, v);
+               nr_threads = git_config_int(k, v, ctx->kvi);
                if (nr_threads < 0)
                        die(_("invalid number of threads specified (%d)"),
                            nr_threads);