Skip to content

Commit 400d160

Browse files
avargitster
authored andcommitted
mailmap tests: add a test for "not a blob" error
Add a test for one of the error conditions added in 938a60d (mailmap: clean up read_mailmap error handling, 2012-12-12). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fb3bbe4 commit 400d160

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t4203-mailmap.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,15 @@ test_expect_success 'mailmap.blob can be missing' '
333333
test_cmp expect actual
334334
'
335335

336+
test_expect_success 'mailmap.blob might be the wrong type' '
337+
test_when_finished "rm .mailmap" &&
338+
cp default.map .mailmap &&
339+
340+
git -c mailmap.blob=HEAD: shortlog HEAD >actual 2>err &&
341+
test_i18ngrep "mailmap is not a blob" err &&
342+
test_cmp expect actual
343+
'
344+
336345
test_expect_success 'mailmap.blob defaults to off in non-bare repo' '
337346
git init non-bare &&
338347
(

0 commit comments

Comments
 (0)