git-submodule.sh: align error reporting for update mode to use path
[gitweb.git] / 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")