From: Stefan Beller Date: Fri, 3 Aug 2018 22:23:16 +0000 (-0700) Subject: git-submodule.sh: align error reporting for update mode to use path X-Git-Tag: v2.20.0-rc0~247^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ff03d9306c7dbc2011c0a6660359d9074e4a3ab3 git-submodule.sh: align error reporting for update mode to use path 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 Signed-off-by: Junio C Hamano --- diff --git a/git-submodule.sh b/git-submodule.sh index 8b5ad59bde..5a58812645 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -632,7 +632,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")