lockfile: allow reopening a closed but still locked file
[gitweb.git] / submodule.c
index e3884877f20129a94e664492d25e6f9dd7291b56..b80ecacf60dc87025336b6b6d6a51acc9321f429 100644 (file)
@@ -178,7 +178,7 @@ void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt,
 
 int submodule_config(const char *var, const char *value, void *cb)
 {
-       if (!prefixcmp(var, "submodule."))
+       if (starts_with(var, "submodule."))
                return parse_submodule_config_option(var, value);
        else if (!strcmp(var, "fetch.recursesubmodules")) {
                config_fetch_recurse_submodules = parse_fetch_recurse_submodules_arg(var, value);