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

Re: [PATCH] get_next_submodule(): format error string as an error

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2019, 16:15 UTC
Message-ID
<xmqqtvaj67v3.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190814155953.GC12093@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> On Wed, Aug 14, 2019 at 09:57:50AM +0000, Paolo Pettinato (ppettina) wrote:
>
>> Could not access submodule 'sm' # fails, plus no newline here :P!
>
> This part seems easy enough to fix.
Indeed, it is ;-)
Show 13 quoted lines
> diff --git a/submodule.c b/submodule.c
> index 0f199c5137..a5ba57ac36 100644
> --- a/submodule.c
> +++ b/submodule.c
> @@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp,
>  			    !is_empty_dir(ce->name)) {
>  				spf->result = 1;
>  				strbuf_addf(err,
> -					    _("Could not access submodule '%s'"),
> +					    _("error: could not access submodule '%s'\n"),
>  					    ce->name);
>  			}
>  		}
Previous: Jeff King
Message 8 of 8 in “Git fetch bug in git 2.21+ "Could not access submodule '%s'"”
  1. Paolo Pettinato (ppettina)Aug 14, 2019
  2. Jeff KingAug 14, 2019
  3. Junio C HamanoAug 14, 2019
  4. Paolo Pettinato (ppettina)Aug 14, 2019
  5. Junio C HamanoAug 14, 2019
  6. Jeff KingAug 14, 2019
  7. get_next_submodule(): format error string as an errorJeff King, Aug 14, 2019
  8. Junio C HamanoAug 14, 2019

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.