Merge branch 'jc/ident-whose-ident'
Error message update. * jc/ident-whose-ident: ident: say whose identity is missing when giving user.name hint
This commit is contained in:
@ -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
|
||||
)
|
||||
'
|
||||
|
||||
|
Reference in New Issue
Block a user