checkout: Use submodule.*.ignore settings from .git/config and .gitmodules
[gitweb.git] / builtin / checkout.c
index e73bfe3403e0d80aced9607321792bb60779b109..829442932f1711ecaea99180e7d3f6875f963832 100644 (file)
@@ -608,6 +608,10 @@ static int git_checkout_config(const char *var, const char *value, void *cb)
                handle_ignore_submodules_arg(&opts->diff_options, value);
                return 0;
        }
+
+       if (!prefixcmp(var, "submodule."))
+               return parse_submodule_config_option(var, value);
+
        return git_xmerge_config(var, value, NULL);
 }
 
@@ -689,6 +693,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
        memset(&opts, 0, sizeof(opts));
        memset(&new, 0, sizeof(new));
 
+       gitmodules_config();
        git_config(git_checkout_config, &opts);
 
        opts.track = BRANCH_TRACK_UNSPECIFIED;