Skip to content

Commit 052d6c8

Browse files
sschuberthnalla
authored andcommitted
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).
1 parent c25fa2e commit 052d6c8

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

435435
if test -z "$force" && ! git add --dry-run --ignore-missing "$sm_path" > /dev/null 2>&1
436436
then
437-
eval_gettextln "The following path is ignored by one of your .gitignore files:
438-
\$sm_path
439-
Use -f if you really want to add it." >&2
437+
cat >&2 <<EOF
438+
The following path is ignored by one of your .gitignore files:
439+
$(eval_gettextln $sm_path)
440+
Use -f if you really want to add it.
441+
EOF
440442
exit 1
441443
fi
442444

0 commit comments

Comments
 (0)