git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin/send-pack: report gpg config errors

From
Stefan Beller <sbeller@google.com>
Date
Jun 12, 2018, 18:19 UTC
Message-ID
<CAGZ79kadthZi1oj-2FFpiUiwDtK744Cr05Hj1MkMFPs8uto7ZA@mail.gmail.com>
In-Reply-To
<20180612180705.GA28554@aiede.svl.corp.google.com>
On Tue, Jun 12, 2018 at 11:08 AM Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 15 quoted lines
>
> Hi,
>
> Stefan Beller wrote:
>
> > Any caller except of git_gpg_config() except the one in send_pack_config()
> > handles the return value of git_gpg_config(). Also handle the return value
> > there.
> >
> > Signed-off-by: Stefan Beller <sbeller@google.com>
> > ---
> >  builtin/send-pack.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
>
> The other callers do
except builtin/log, which I followed. :/
Show 8 quoted lines
>
>         int status;
>
>         if (!strcmp(k, "key.i.handle")) {
>                 ...
>                 return ...;
>         }
>         return git_gpg_config(k, v, NULL);

This conflicts with Masayas patch, that has a return of the standard options.

Show 14 quoted lines
>
> or
>
>         int status;
>
>         if (!strcmp(k, "key.i.handle")) {
>                 ...
>                 return ...;
>         }
>
>         status = git_gpg_config(k, v, NULL);
>         if (status)
>                 return status;
>         ...
This looks like a good idea.
Will send a follow up patch.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 6 of 8 in “builtin/send-pack: populate the default configs”
  1. builtin/send-pack: populate the default configsMasaya Suzuki, Jun 12, 2018
  2. Junio C HamanoJun 12, 2018
  3. builtin/send-pack: report gpg config errorsStefan Beller, Jun 12, 2018
  4. Eric SunshineJun 12, 2018
  5. Jonathan NiederJun 12, 2018
  6. Stefan BellerJun 12, 2018
  7. Jonathan NiederJun 12, 2018
  8. Eric SunshineJun 12, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.