From a6ffa18ad0a9db65bceaf576a79b595883de2368 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 28 Apr 2011 00:30:49 +0200 Subject: [PATCH] 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). --- git-sh-setup.sh | 4 +++- git-submodule.sh | 11 +++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 94e26ed5e8..e3ad57a7e4 100644 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -49,7 +49,9 @@ GIT_QUIET= say () { if test -z "$GIT_QUIET" then - printf '%s\n' "$*" + cat < /dev/null 2>&1 then - ( - eval_gettext "The following path is ignored by one of your .gitignore files: -\$path -Use -f if you really want to add it." && - echo - ) >&2 + cat >&2 <