summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-01-12 20:17:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-12 22:04:40 (GMT)
commit400d160e39509fc5d7051f7338293b793cded9e3 (patch)
treec61aa48fcdfa21c04b2289326af2fd6770fd00ed /t
parentfb3bbe4ea35cb67279dc4a4509e9bce34a33b2b9 (diff)
downloadgit-400d160e39509fc5d7051f7338293b793cded9e3.zip
git-400d160e39509fc5d7051f7338293b793cded9e3.tar.gz
git-400d160e39509fc5d7051f7338293b793cded9e3.tar.bz2
mailmap tests: add a test for "not a blob" error
Add a test for one of the error conditions added in 938a60d64f (mailmap: clean up read_mailmap error handling, 2012-12-12). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t4203-mailmap.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh
index 03a98d9..78d56e0 100755
--- a/t/t4203-mailmap.sh
+++ b/t/t4203-mailmap.sh
@@ -333,6 +333,15 @@ test_expect_success 'mailmap.blob can be missing' '
test_cmp expect actual
'
+test_expect_success 'mailmap.blob might be the wrong type' '
+ test_when_finished "rm .mailmap" &&
+ cp default.map .mailmap &&
+
+ git -c mailmap.blob=HEAD: shortlog HEAD >actual 2>err &&
+ test_i18ngrep "mailmap is not a blob" err &&
+ test_cmp expect actual
+'
+
test_expect_success 'mailmap.blob defaults to off in non-bare repo' '
git init non-bare &&
(