Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-09-03 20:51:43 +0400
committerJunio C Hamano <gitster@pobox.com>2007-09-04 03:44:35 +0400
commitfec60a261d9375d1f129313bb68036fbd2a5175c (patch)
treee638606df08f27c8d206d7c871b11ec81a43c5fc /builtin-verify-tag.c
parent1e61b7640d09015213dbcae3564fa27ac6a8c151 (diff)
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 dfcfcd0455..cc4c55d7ee 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;
}