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>
This commit is contained in:
parent
1d89318c48
commit
ff03d9306c
@ -632,7 +632,7 @@ cmd_update()
|
|||||||
must_die_on_failure=yes
|
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
|
esac
|
||||||
|
|
||||||
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")
|
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")
|
||||||
|
Loading…
Reference in New Issue
Block a user