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

Commit 6d5ddaf

Browse files
patthoytsdscho
authored andcommitted
t6006: be explicit about the encoding of test strings for msysgit
Signed-off-by: Pat Thoyts <[email protected]>
1 parent b5dde94 commit 6d5ddaf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

t/t6006-rev-list-format.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ test_expect_success 'setup' '
2222
: >foo &&
2323
git add foo &&
2424
git config i18n.commitEncoding iso8859-1 &&
25-
git commit -m "$added_iso88591" &&
25+
echo "$added_iso88591" > commit-msg &&
26+
git commit -F commit-msg &&
2627
head1=$(git rev-parse --verify HEAD) &&
2728
head1_short=$(git rev-parse --verify --short $head1) &&
2829
tree1=$(git rev-parse --verify HEAD:) &&
2930
tree1_short=$(git rev-parse --verify --short $tree1) &&
3031
echo "$changed" > foo &&
31-
git commit -a -m "$changed_iso88591" &&
32+
echo "$changed_iso88591" > commit-msg &&
33+
git commit -a -F commit-msg &&
3234
head2=$(git rev-parse --verify HEAD) &&
3335
head2_short=$(git rev-parse --verify --short $head2) &&
3436
tree2=$(git rev-parse --verify HEAD:) &&
@@ -206,13 +208,12 @@ test_expect_success '%C(auto) respects --color=auto (stdout not tty)' '
206208
)
207209
'
208210

209-
iconv -f utf-8 -t iso8859-1 > commit-msg <<EOF
210-
Test printing of complex bodies
211+
printf "Test printing of complex bodies
211212
212213
This commit message is much longer than the others,
213214
and it will be encoded in iso8859-1. We should therefore
214-
include an iso8859 character: ¡bueno!
215-
EOF
215+
include an iso8859 character: \302\241bueno!
216+
" | iconv -f utf-8 -t iso8859-1 > commit-msg
216217

217218
test_expect_success 'setup complex body' '
218219
git config i18n.commitencoding iso8859-1 &&

0 commit comments

Comments
 (0)