test_tick &&
# "git commit -m" would break MinGW, as Windows refuse to pass
# $test_encoding encoded parameter to git.
- echo "Add $name ($added $name)" | iconv -f utf-8 -t $test_encoding |
- git -c "i18n.commitEncoding=$test_encoding" commit -F -
+ message="Add $name ($added $name)" &&
+ if test_have_prereq ICONV
+ then
+ message=$(echo "$message" | iconv -f utf-8 -t $test_encoding)
+ fi &&
+ echo "$message" | git -c "i18n.commitEncoding=$test_encoding" commit -F -
done >/dev/null &&
git rev-parse --short --verify HEAD
)
test_tick &&
# "git commit -m" would break MinGW, as Windows refuse to pass
# $test_encoding encoded parameter to git.
- echo "Add $name ($added $name)" | iconv -f utf-8 -t $test_encoding |
- git -c "i18n.commitEncoding=$test_encoding" commit -F -
+ message="Add $name ($added $name)" &&
+ if test_have_prereq ICONV
+ then
+ message=$(echo "$message" | iconv -f utf-8 -t $test_encoding)
+ fi &&
+ echo "$message" | git -c "i18n.commitEncoding=$test_encoding" commit -F -
done >/dev/null &&
git rev-parse --short --verify HEAD
)
test_tick &&
# "git commit -m" would break MinGW, as Windows refuse to pass
# $test_encoding encoded parameter to git.
- echo "Add $name ($added $name)" | iconv -f utf-8 -t $test_encoding |
- git -c "i18n.commitEncoding=$test_encoding" commit -F -
+ message="Add $name ($added $name)" &&
+ if test_have_prereq ICONV
+ then
+ message=$(echo "$message" | iconv -f utf-8 -t $test_encoding)
+ fi &&
+ echo "$message" | git -c "i18n.commitEncoding=$test_encoding" commit -F -
done >/dev/null &&
git rev-parse --short --verify HEAD
)