Re: [PATCH v2 7/8] submodule-config: pass repo upon blob config read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 13, 2021 at 6:05 PM Jonathan Tan <jonathantanmy@xxxxxxxxxx> wrote:
>

Oops, I accidentally deleted this part in my previous reply:

> diff --git a/config.c b/config.c
> index f33abeab85..a85c12e6cc 100644
> --- a/config.c
> +++ b/config.c
> @@ -1820,6 +1821,7 @@ int git_config_from_blob_oid(config_fn_t fn,
>  }
>
>  static int git_config_from_blob_ref(config_fn_t fn,
> +                                   struct repository *repo,
>                                     const char *name,
>                                     void *data)
>  {
> @@ -1827,7 +1829,7 @@ static int git_config_from_blob_ref(config_fn_t fn,
>
>         if (get_oid(name, &oid) < 0)

This should be `repo_get_oid(repo, ...)` now.

>                 return error(_("unable to resolve config blob '%s'"), name);
> -       return git_config_from_blob_oid(fn, name, &oid, data);
> +       return git_config_from_blob_oid(fn, name, repo, &oid, data);
>  }



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux