Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-submodule.sh: align error reporting for update mode to use path
author
Stefan Beller
<sbeller@google.com>
Fri, 3 Aug 2018 22:23:16 +0000
(15:23 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 3 Aug 2018 22:37:12 +0000
(15:37 -0700)
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>
git-submodule.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
1d89318
)
diff --git
a/git-submodule.sh
b/git-submodule.sh
index 8b5ad59bdee39eba4fc56b28d6771a291dac55f0..5a58812645df06329df6ab3c13142987a5140bf8 100755
(executable)
--- a/
git-submodule.sh
+++ b/
git-submodule.sh
@@
-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
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")
esac
if (sanitize_submodule_env; cd "$sm_path" && $command "$sha1")