git-submodule.sh: align error reporting for update mode to use path
authorStefan Beller <sbeller@google.com>
Fri, 3 Aug 2018 22:23:16 +0000 (15:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Aug 2018 22:37:12 +0000 (15:37 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
index 8b5ad59bdee39eba4fc56b28d6771a291dac55f0..5a58812645df06329df6ab3c13142987a5140bf8 100755 (executable)
@@ -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")