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

Re: [PATCH 1/6] git-submodule.sh: align error reporting for update mode to use path

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 12, 2018, 21:12 UTC
Message-ID
<xmqqa7qwupje.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180712194754.71979-2-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
Show 5 quoted lines
> All other error messages in cmd_update are reporting the submodule based
> on its path, so let's do that for invalid update modes, too.
>
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---
Makes sense.
Show 16 quoted lines
>  git-submodule.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/git-submodule.sh b/git-submodule.sh
> index 5f9d9f6ea37..8a611865397 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -627,7 +627,7 @@ cmd_update()
>  				must_die_on_failure=yes
>  				;;
>  			*)
> -				die "$(eval_gettext "Invalid update mode '$update_module' for submodule '$name'")"
> +				die "$(eval_gettext "Invalid update mode '$update_module' for submodule path '$path'")"
>  			esac
>  
>  			if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")
Previous: Stefan BellerNext: Stefan Beller
Message 3 of 13 in “git-submodule.sh: convert part of cmd_update to C”
  1. 0/6 git-submodule.sh: convert part of cmd_update to CStefan Beller, Jul 12, 2018
  2. 1/6 git-submodule.sh: align error reporting for update mode to use pathStefan Beller, Jul 12, 2018
  3. Junio C HamanoJul 12, 2018
  4. 2/6 git-submodule.sh: rename unused variablesStefan Beller, Jul 12, 2018
  5. Junio C HamanoJul 12, 2018
  6. 3/6 builtin/submodule--helper: factor out submodule updatingStefan Beller, Jul 12, 2018
  7. 4/6 builtin/submodule--helper: store update_clone information in a structStefan Beller, Jul 12, 2018
  8. Junio C HamanoJul 16, 2018
  9. Stefan BellerJul 16, 2018
  10. 5/6 builtin/submodule--helper: factor out method to update a single submoduleStefan Beller, Jul 12, 2018
  11. 6/6 submodule--helper: introduce new update-module-mode helperStefan Beller, Jul 12, 2018
  12. Derrick StoleeJul 18, 2018
  13. Stefan BellerJul 18, 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.