diff options
Diffstat (limited to 'third_party/git/t/t7518-ident-corner-cases.sh')
-rwxr-xr-x | third_party/git/t/t7518-ident-corner-cases.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/third_party/git/t/t7518-ident-corner-cases.sh b/third_party/git/t/t7518-ident-corner-cases.sh index b22f631261f0..dc3e9c8c88b1 100755 --- a/third_party/git/t/t7518-ident-corner-cases.sh +++ b/third_party/git/t/t7518-ident-corner-cases.sh @@ -29,7 +29,18 @@ test_expect_success 'empty configured name does not auto-detect' ' sane_unset GIT_AUTHOR_NAME && test_must_fail \ git -c user.name= commit --allow-empty -m foo 2>err && - test_i18ngrep "empty ident name" err + test_i18ngrep "empty ident name" err && + test_i18ngrep "Author identity unknown" err + ) +' + +test_expect_success 'empty configured name does not auto-detect for committer' ' + ( + sane_unset GIT_COMMITTER_NAME && + test_must_fail \ + git -c user.name= commit --allow-empty -m foo 2>err && + test_i18ngrep "empty ident name" err && + test_i18ngrep "Committer identity unknown" err ) ' |