diff --git a/git-submodule.sh b/git-submodule.sh index c571d320d0..1bf19b733c 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -750,12 +750,16 @@ cmd_summary() { done | if test -n "$for_status"; then if [ -n "$files" ]; then - gettext "# Submodules changed but not updated:"; echo + status_msg="$(gettext "# Submodules changed but not updated:")" else - gettext "# Submodule changes to be committed:"; echo + status_msg="$(gettext "# Submodule changes to be committed:")" fi - echo "#" - sed -e 's|^|# |' -e 's|^# $|#|' + status_sed=$(sed -e 's|^|# |' -e 's|^# $|#|') + cat <