]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/gc.c
config: add --comment option to add a comment
[thirdparty/git.git] / builtin / gc.c
index cb80ced6cb5c65d70859a3a6f57cff3d886084b3..342907f7bdb5b825a8052065645c8c3c7b47670b 100644 (file)
@@ -1553,7 +1553,7 @@ static int maintenance_register(int argc, const char **argv, const char *prefix)
                        die(_("$HOME not set"));
                rc = git_config_set_multivar_in_file_gently(
                        config_file, "maintenance.repo", maintpath,
-                       CONFIG_REGEX_NONE, 0);
+                       CONFIG_REGEX_NONE, NULL, 0);
                free(global_config_file);
 
                if (rc)
@@ -1620,7 +1620,7 @@ static int maintenance_unregister(int argc, const char **argv, const char *prefi
                if (!config_file)
                        die(_("$HOME not set"));
                rc = git_config_set_multivar_in_file_gently(
-                       config_file, key, NULL, maintpath,
+                       config_file, key, NULL, maintpath, NULL,
                        CONFIG_FLAGS_MULTI_REPLACE | CONFIG_FLAGS_FIXED_VALUE);
                free(global_config_file);