Christian Couder [off-list ref] writes:
+# We cannot use test_atom to check contents:size of signed tags due to sanitize_pgp
+test_tag_contents_size_pgp () {
+ ref="$1"
+ test_expect_success $PREREQ "basic atom: $ref contents:size" "
+ git cat-file tag $ref | tail -n +6 | wc -c >expected &&
+ git for-each-ref --format='%(contents:size)' $ref >actual &&
+ test_cmp expected actual
+ "
+}
Of course, this will BREAK the tests on macOS and possibly others
with "wc" that emits leading whitespaces before the number.
The tip of 'seen' has been failing ever since this topic was merged
there e.g. https://travis-ci.org/github/git/git/jobs/705986794
Thanks.