Code

tag: factor out sig detection for tag display
[git.git] / builtin / tag.c
index 66feeb0c64c4b9986fe629af3b34e949f94bd887..617a58f0583049716c7b73577ac6df0e132bebea 100644 (file)
@@ -68,9 +68,9 @@ static int show_reference(const char *refname, const unsigned char *sha1,
                        return 0;
                }
                /* only take up to "lines" lines, and strip the signature */
+               size = parse_signature(buf, size);
                for (i = 0, sp += 2;
-                               i < filter->lines && sp < buf + size &&
-                               prefixcmp(sp, PGP_SIGNATURE "\n");
+                               i < filter->lines && sp < buf + size;
                                i++) {
                        if (i)
                                printf("\n    ");