]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
Merge branch 'ab/config-multi-and-nonbool'
[thirdparty/git.git] / builtin / submodule--helper.c
index 65a053261a952b8b012a70f976569ee101ebfc9f..6cd807471e721fc4ab5e7ff3af90df1cf55338b6 100644 (file)
@@ -559,7 +559,7 @@ static int module_init(int argc, const char **argv, const char *prefix)
         * If there are no path args and submodule.active is set then,
         * by default, only initialize 'active' modules.
         */
-       if (!argc && git_config_get_value_multi("submodule.active"))
+       if (!argc && !git_config_get("submodule.active"))
                module_list_active(&list);
 
        info.prefix = prefix;
@@ -2745,7 +2745,7 @@ static int module_update(int argc, const char **argv, const char *prefix)
                 * If there are no path args and submodule.active is set then,
                 * by default, only initialize 'active' modules.
                 */
-               if (!argc && git_config_get_value_multi("submodule.active"))
+               if (!argc && !git_config_get("submodule.active"))
                        module_list_active(&list);
 
                info.prefix = opt.prefix;
@@ -3142,7 +3142,6 @@ static int config_submodule_in_gitmodules(const char *name, const char *var, con
 static void configure_added_submodule(struct add_data *add_data)
 {
        char *key;
-       const char *val;
        struct child_process add_submod = CHILD_PROCESS_INIT;
        struct child_process add_gitmodules = CHILD_PROCESS_INIT;
 
@@ -3187,7 +3186,7 @@ static void configure_added_submodule(struct add_data *add_data)
         * is_submodule_active(), since that function needs to find
         * out the value of "submodule.active" again anyway.
         */
-       if (!git_config_get_string_tmp("submodule.active", &val)) {
+       if (!git_config_get("submodule.active")) {
                /*
                 * If the submodule being added isn't already covered by the
                 * current configured pathspec, set the submodule's active flag