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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Aug 3, 2018 at 15:23 UTC
ff03d9306c7dbc2011c0a6660359d9074e4a3ab3
1 file changed
+1
-1
git-submodule.sh
+1
-1
@@ -632,7 +632,7 @@ cmd_update()
632
must_die_on_failure=yes
633
;;
634
*)
635
- die "$(eval_gettext "Invalid update mode '$update_module' for submodule '$name'")"
635
+ die "$(eval_gettext "Invalid update mode '$update_module' for submodule path '$path'")"
636
esac
637
638
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")