summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-08-03 22:23:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-03 22:37:12 (GMT)
commitff03d9306c7dbc2011c0a6660359d9074e4a3ab3 (patch)
tree63079f955e4c2523618f42b034ac59e674d1153a /git-submodule.sh
parent1d89318c48d233d52f1db230cf622935ac3c69fa (diff)
downloadgit-ff03d9306c7dbc2011c0a6660359d9074e4a3ab3.zip
git-ff03d9306c7dbc2011c0a6660359d9074e4a3ab3.tar.gz
git-ff03d9306c7dbc2011c0a6660359d9074e4a3ab3.tar.bz2
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 8b5ad59..5a58812 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -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")