mirror of
https://github.com/git/git.git
synced 2026-02-03 22:42:53 +00:00
mingw: Fix submodule tests t7400, t7405, t7406
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). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
51cff0776d
commit
3c35f9b1ec
@@ -59,7 +59,9 @@ GIT_QUIET=
|
||||
say () {
|
||||
if test -z "$GIT_QUIET"
|
||||
then
|
||||
printf '%s\n' "$*"
|
||||
cat <<EOF
|
||||
$*
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -443,9 +443,11 @@ cmd_add()
|
||||
|
||||
if test -z "$force" && ! git add --dry-run --ignore-missing "$sm_path" > /dev/null 2>&1
|
||||
then
|
||||
eval_gettextln "The following path is ignored by one of your .gitignore files:
|
||||
\$sm_path
|
||||
Use -f if you really want to add it." >&2
|
||||
cat >&2 <<EOF
|
||||
The following path is ignored by one of your .gitignore files:
|
||||
$(eval_gettextln $sm_path)
|
||||
Use -f if you really want to add it.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user