diff options
Diffstat (limited to 't/t7507-commit-verbose.sh')
| -rwxr-xr-x | t/t7507-commit-verbose.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh index 916470c48b..4c7db19ce7 100755 --- a/t/t7507-commit-verbose.sh +++ b/t/t7507-commit-verbose.sh @@ -89,7 +89,7 @@ test_expect_success 'submodule log is stripped out too with -v' ' export GIT_EDITOR && test_must_fail git commit -a -v 2>err ) && - test_i18ngrep "Aborting commit due to empty commit message." err + test_grep "Aborting commit due to empty commit message." err ' test_expect_success 'verbose diff is stripped out with set core.commentChar' ' @@ -98,7 +98,17 @@ test_expect_success 'verbose diff is stripped out with set core.commentChar' ' export GIT_EDITOR && test_must_fail git -c core.commentchar=";" commit -a -v 2>err ) && - test_i18ngrep "Aborting commit due to empty commit message." err + test_grep "Aborting commit due to empty commit message." err +' + +test_expect_success 'verbose diff is stripped with multi-byte comment char' ' + ( + GIT_EDITOR=cat && + export GIT_EDITOR && + test_must_fail git -c core.commentchar="foo>" commit -a -v >out 2>err + ) && + grep "^foo> " out && + test_grep "Aborting commit due to empty commit message." err ' test_expect_success 'status does not verbose without --verbose' ' |
