Skip to content

Commit f58e9c3

Browse files
sschuberthdscho
authored andcommitted
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 <[email protected]>
1 parent c67f8fd commit f58e9c3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

git-sh-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ GIT_QUIET=
5959
say () {
6060
if test -z "$GIT_QUIET"
6161
then
62-
printf '%s\n' "$*"
62+
cat <<EOF
63+
$*
64+
EOF
6365
fi
6466
}
6567

git-submodule.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,11 @@ cmd_add()
443443

444444
if test -z "$force" && ! git add --dry-run --ignore-missing "$sm_path" > /dev/null 2>&1
445445
then
446-
eval_gettextln "The following path is ignored by one of your .gitignore files:
447-
\$sm_path
448-
Use -f if you really want to add it." >&2
446+
cat >&2 <<EOF
447+
The following path is ignored by one of your .gitignore files:
448+
$(eval_gettextln $sm_path)
449+
Use -f if you really want to add it.
450+
EOF
449451
exit 1
450452
fi
451453

0 commit comments

Comments
 (0)