summaryrefslogtreecommitdiff
path: root/builtin-verify-tag.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-09-03 16:51:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-03 23:44:35 (GMT)
commitfec60a261d9375d1f129313bb68036fbd2a5175c (patch)
treee638606df08f27c8d206d7c871b11ec81a43c5fc /builtin-verify-tag.c
parent1e61b7640d09015213dbcae3564fa27ac6a8c151 (diff)
downloadgit-fec60a261d9375d1f129313bb68036fbd2a5175c.zip
git-fec60a261d9375d1f129313bb68036fbd2a5175c.tar.gz
git-fec60a261d9375d1f129313bb68036fbd2a5175c.tar.bz2
verify-tag: also grok CR/LFs in the tag signature
On some people's favorite platform, gpg outputs signatures with CR/LF line endings. So verify-tag has to play nice with them. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-verify-tag.c')
-rw-r--r--builtin-verify-tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-verify-tag.c b/builtin-verify-tag.c
index dfcfcd0..cc4c55d 100644
--- a/builtin-verify-tag.c
+++ b/builtin-verify-tag.c
@@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
/* find the length without signature */
len = 0;
- while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
+ while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
eol = memchr(buf + len, '\n', size - len);
len += eol ? eol - (buf + len) + 1 : size - len;
}