summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e61b76)
raw | patch | inline | side by side (parent: 1e61b76)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Mon, 3 Sep 2007 16:51:43 +0000 (17:51 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Sep 2007 23:44:35 +0000 (16:44 -0700) |
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>
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>
builtin-verify-tag.c | patch | blob | history |
diff --git a/builtin-verify-tag.c b/builtin-verify-tag.c
index dfcfcd0455ce471a6120d11bcbdb7553de59f536..cc4c55d7ee35ceeaf8c4a857d5dad857a7eb2664 100644 (file)
--- a/builtin-verify-tag.c
+++ b/builtin-verify-tag.c
/* 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;
}