mirror of
https://github.com/git/git.git
synced 2026-03-14 18:59:04 +01:00
submodule: Use cat instead of echo to avoid DOS line-endings
In msysGit, echo used in scripts outputs DOS line-endings while built-ins use Unix line-endings in their output. This causes t7508-status to fail due to mixed line endings in the output of git status (which calls git-submodule). Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
a368f5c07e
commit
306484a00f
@@ -791,12 +791,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 <<EOF
|
||||
$status_msg
|
||||
#
|
||||
$status_sed
|
||||
EOF
|
||||
else
|
||||
cat
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user