]> git.ipfire.org Git - thirdparty/git.git/blobdiff - archive-tar.c
config: pass kvi to die_bad_number()
[thirdparty/git.git] / archive-tar.c
index 497dad0b3af4adac513ee70d5eb72f9cc1517179..3df8af6d1b156c393a635ac46b1c74bbb2fc12e0 100644 (file)
@@ -5,6 +5,7 @@
 #include "alloc.h"
 #include "config.h"
 #include "gettext.h"
+#include "git-zlib.h"
 #include "hex.h"
 #include "tar.h"
 #include "archive.h"
@@ -410,14 +411,15 @@ static int tar_filter_config(const char *var, const char *value,
        return 0;
 }
 
-static int git_tar_config(const char *var, const char *value, void *cb)
+static int git_tar_config(const char *var, const char *value,
+                         const struct config_context *ctx, void *cb)
 {
        if (!strcmp(var, "tar.umask")) {
                if (value && !strcmp(value, "user")) {
                        tar_umask = umask(0);
                        umask(tar_umask);
                } else {
-                       tar_umask = git_config_int(var, value);
+                       tar_umask = git_config_int(var, value, ctx->kvi);
                }
                return 0;
        }