Hmmmm... you do not seem to pass your own test. expecting success: echo $bogus_type >expect && git cat-file -t --allow-unknown-type $bogus_sha1 >actual && test_cmp expect actual --- expect 2015-05-04 00:09:24.327335512 +0000 +++ actual 2015-05-04 00:09:24.335335473 +0000 @@ -1 +1 @@ -abcdefghijklmnopqrstuvwxyz1234679 +abcdefghijklmnopqrstuvwxyz123467abcdefghijklmnopqrstuvwxyz1234679 not ok 86 - Type of broken object is correct when type is large -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html