Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-09-01 01:49:51 +0300
committerJunio C Hamano <gitster@pobox.com>2020-09-01 01:49:51 +0300
commite9bd00ab2dad0148c8643a773ea2e68d624f5624 (patch)
tree25c9a89c6a0567d8f270c9544869cd43f00062b8 /t
parent1393f56f4a467b5687106bbb750544437359de52 (diff)
parent9ed104e5cacdc44f2fe7c2b1fdeada94622ca4e9 (diff)
Merge branch 'jc/ident-whose-ident'
Error message update. * jc/ident-whose-ident: ident: say whose identity is missing when giving user.name hint
Diffstat (limited to 't')
-rwxr-xr-xt/t7518-ident-corner-cases.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/t7518-ident-corner-cases.sh b/t/t7518-ident-corner-cases.sh
index b22f631261..dc3e9c8c88 100755
--- a/t/t7518-ident-corner-cases.sh
+++ b/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
)
'