mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
04a92f210c
In f32e473ff520, the "commit" function was extracted into a testutil for re-use. However, test-encoding.t was skipped over in that changeset, as I was seeing unexplained test failures. Since those test failures have now been explained (and fixed), this changeset performs the same extraction on test-encoding.t as was done on all the other tests. The version of fn_git_commit that was used in testutil redirected all output (including errors) to /dev/null, which didn't match the expectations of this test. The test utility functions for commit/tag now no longer throw away error output, instead leaving it to individual tests to decide if error output should be ignored.
19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
# -*- coding: latin-1 -*-
|
|
|
|
# this file contains some latin-1 messages for test-encoding
|
|
|
|
GIT_AUTHOR_NAME='tést èncödîng'; export GIT_AUTHOR_NAME
|
|
echo beta > beta
|
|
git add beta
|
|
fn_git_commit -m 'add beta'
|
|
|
|
echo gamma > gamma
|
|
git add gamma
|
|
fn_git_commit -m 'add gämmâ'
|
|
|
|
# test the commit encoding field
|
|
git config i18n.commitencoding latin-1
|
|
echo delta > delta
|
|
git add delta
|
|
fn_git_commit -m 'add déltà'
|