Skip to content

Commit d4e1ec4

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e333175 commit d4e1ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ cmd_update()
627627
must_die_on_failure=yes
628628
;;
629629
*)
630-
die "$(eval_gettext "Invalid update mode '$update_module' for submodule '$name'")"
630+
die "$(eval_gettext "Invalid update mode '$update_module' for submodule path '$path'")"
631631
esac
632632

633633
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")

0 commit comments

Comments
 (0)