Skip to content

Commit abb1ee7

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 4a80059 commit abb1ee7

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
@@ -309,9 +309,11 @@ cmd_add()
309309

310310
if test -z "$force" && ! git add --dry-run --ignore-missing "$sm_path" > /dev/null 2>&1
311311
then
312-
eval_gettextln "The following path is ignored by one of your .gitignore files:
313-
\$sm_path
314-
Use -f if you really want to add it." >&2
312+
cat >&2 <<EOF
313+
The following path is ignored by one of your .gitignore files:
314+
$(eval_gettextln $sm_path)
315+
Use -f if you really want to add it.
316+
EOF
315317
exit 1
316318
fi
317319

0 commit comments

Comments
 (0)