mirror of
https://github.com/git/git.git
synced 2026-03-12 01:49:49 +01:00
submodule: Use cat instead of echo to avoid DOS line-endings, was: Re: 4msysgit & tags
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
Pat Thoyts
parent
107dbe59d9
commit
5f439cdd9c
@@ -742,12 +742,16 @@ cmd_summary() {
|
||||
done |
|
||||
if test -n "$for_status"; then
|
||||
if [ -n "$files" ]; then
|
||||
echo "# Submodules changed but not updated:"
|
||||
status_msg="# Submodules changed but not updated:"
|
||||
else
|
||||
echo "# Submodule changes to be committed:"
|
||||
status_msg="# 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