submodule: Fix t7400, t7405, t7406 for msysGit

Again, avoid using echo (which issues DOS line endings on msysGit) to not mix
with Unix line-endings issued by git built-ins, even if this is at the cost of
calling an external executable (cat) instead of a shell built-in (echo).
This commit is contained in:
Sebastian Schuberth committed 2011-05-01 20:14:06 +02:00
1 parent 599f5058a0
commit f33946d98d
2 files changed
+8 -4

No files matched your search

+3 -1
View File
@@ -49,7 +49,9 @@ GIT_QUIET=
say () {
if test -z "$GIT_QUIET"
then
printf '%s\n' "$*"
cat <<EOF
$*
EOF
fi
}
+5 -3
View File
@@ -222,9 +222,11 @@ cmd_add()
if test -z "$force" && ! git add --dry-run --ignore-missing "$path" > /dev/null 2>&1
then
echo >&2 "The following path is ignored by one of your .gitignore files:" &&
echo >&2 $path &&
echo >&2 "Use -f if you really want to add it."
cat >&2 <<EOF
The following path is ignored by one of your .gitignore files:
$path
Use -f if you really want to add it.
EOF
exit 1
fi