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

Re: [PATCHv2 1/2] submodule init: fail gracefully with a missing .gitmodules file

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 29, 2016, 17:06 UTC
Message-ID
<xmqq4mak1h04.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1461873766-14703-1-git-send-email-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
Show 8 quoted lines
> When there is no .gitmodules file availabe to initialize a submodule
> from, `submodule_from_path` just returns NULL. We need to check for
> that and abort gracefully. When `submodule init` was implemented in shell,
> a missing .gitmodules file would result in an error message
>
>     No url found for submodule path '%s' in .gitmodules
>
> Replicate that error message for now.

Good to start from a faithful conversion. Thanks for adding a test, too.

Will queue.
Previous: Stefan Beller
Message 3 of 3 in “[PATCHv2 1/2] submodule init: fail gracefully with a missing .gitmodules file”
  1. Stefan BellerApr 28, 2016
  2. 2/2 submodule--helper update-clone: abort gracefully on missing .gitmodulesStefan Beller, Apr 28, 2016
  3. Junio C HamanoApr 29, 2016

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.