Message ID | 20241008015835.41678-1-daniel@mariadb.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | | expand |
--- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -2450,7 +2450,7 @@ static int run_update_procedure(const struct update_data *ud) * Now we tried the usual fetch, but `oid` may * not be reachable from any of the refs. */ - if (!is_tip_reachable(ud->sm_path, &ud->oid) && + if (is_tip_reachable(ud->sm_path, &ud->oid) && fetch_in_submodule(ud->sm_path, ud->depth, ud->quiet, &ud->oid)) return die_message(_("Fetched in submodule path '%s', but it did not " "contain %s. Direct fetching of that commit failed."),