Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit acf70ef

Browse files
sschuberthdscho
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 14c3a3a commit acf70ef

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

432432
if test -z "$force" && ! git add --dry-run --ignore-missing "$sm_path" > /dev/null 2>&1
433433
then
434-
eval_gettextln "The following path is ignored by one of your .gitignore files:
435-
\$sm_path
436-
Use -f if you really want to add it." >&2
434+
cat >&2 <<EOF
435+
The following path is ignored by one of your .gitignore files:
436+
$(eval_gettextln $sm_path)
437+
Use -f if you really want to add it.
438+
EOF
437439
exit 1
438440
fi
439441

0 commit comments

Comments
 (0)