author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Fri, 11 Jul 2008 16:55:57 +0000 (18:55 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 12 Jul 2008 04:14:34 +0000 (21:14 -0700) | ||
commit | c4adea82c5064971ff6d090be8db89c44456186b | |
tree | 505b1e7cef90a73e7138ff82e343b7db40f8e44c | tree | snapshot |
parent | f9dd4bf4e58af0b4828c7e7013080dba59f8a6b9 | commit | diff |
Convert CR/LF to LF in tag signatures
On Windows, gpg outputs CR/LF signatures. But since the tag messages
are already stripped of the CR by stripspace(), it is arguably nicer
to do the same for the tag signature. Actually, this patch does not
look for CR/LF, but strips all CRs from the signature. It does so not
only on Windows but on all platforms to keep the code simpler.
[ spr: ported code to use strbuf ]
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On Windows, gpg outputs CR/LF signatures. But since the tag messages
are already stripped of the CR by stripspace(), it is arguably nicer
to do the same for the tag signature. Actually, this patch does not
look for CR/LF, but strips all CRs from the signature. It does so not
only on Windows but on all platforms to keep the code simpler.
[ spr: ported code to use strbuf ]
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-tag.c | diff | blob | history |