{"thread":{"id":"47976","subject":"[Bug] git log --show-signature print extra carriage return ^M","startedAt":"2018-03-04T17:09:31Z","lastAt":"2018-04-28T12:19:00Z","messageCount":4,"participants":["Larry Hunter","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"340981","messageId":"CAL+2DvQZ2V9c5Tmn8KCoDOuioOiBsGJspSTVin4qw1oFO2QAwA@mail.gmail.com","threadId":"47976","inReplyTo":null,"subject":"[Bug] git log --show-signature print extra carriage return ^M","fromName":"Larry Hunter","fromEmail":"larhun.it@gmail.com","sentAt":"2018-03-04T17:09:25Z","receivedAt":"2018-03-04T17:09:31Z","isPatch":false,"sender":{"key":"larhun.it@gmail.com","avatar":null},"body":"There is bug using \"git log --show-signature\" in my installation\n\n    git 2.16.2.windows.1\n    gpg (GnuPG) 2.2.4\n    libgcrypt 1.8.2\n\nthat prints (with colors) an extra ^M (carriage return?) at the end of\nthe gpg lines. As an example, the output of \"git log --show-signature\nHEAD\" looks like:\n\n    $ git log --show-signature HEAD\n    commit 46c490188ebd216f20c454ee61108e51b481844e (HEAD -> master)\n    gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale^M\n    gpg:                using RSA key ...^M\n    gpg: Good signature from \"...\" [ultimate]^M\n    Author: ... <...>\n    Date:   Sun Mar 4 16:53:06 2018 +0100\n    ...\n\nTo help find a fix, I tested the command \"git verify-commit HEAD\" that\nprints (without colors) the same lines without extra ^M characters.\n\n    $ git verify-commit HEAD\n    gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale\n    gpg:                using RSA key ...\n    gpg: Good signature from \"...\" [ultimate]\n\nThanks,\nLarry\n"},{"id":"341020","messageId":"nycvar.QRO.7.76.6.1803051457570.20700@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz","threadId":"47976","inReplyTo":"CAL+2DvQZ2V9c5Tmn8KCoDOuioOiBsGJspSTVin4qw1oFO2QAwA@mail.gmail.com","subject":"Re: [Bug] git log --show-signature print extra carriage return ^M","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2018-03-05T14:29:16Z","receivedAt":"2018-03-05T14:29:24Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Larry,\n\nOn Sun, 4 Mar 2018, Larry Hunter wrote:\n\n> There is bug using \"git log --show-signature\" in my installation\n> \n>     git 2.16.2.windows.1\n>     gpg (GnuPG) 2.2.4\n>     libgcrypt 1.8.2\n\nThe gpg.exe shipped in Git for Windows should say something like this:\n\n\t$ gpg --version\n\tgpg (GnuPG) 1.4.22\n\tCopyright (C) 2015 Free Software Foundation, Inc.\n\tLicense GPLv3+: GNU GPL version 3 or later\n\t<http://gnu.org/licenses/gpl.html>\n\tThis is free software: you are free to change and redistribute it.\n\tThere is NO WARRANTY, to the extent permitted by law.\n\n\tHome: ~/.gnupg\n\tSupported algorithms:\n\tPubkey: RSA, RSA-E, RSA-S, ELG-E, DSA\n\tCipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,\n\t\tCAMELLIA128, CAMELLIA192, CAMELLIA256\n\tHash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224\n\tCompression: Uncompressed, ZIP, ZLIB, BZIP2\n\nTherefore, the GNU Privacy Guard version you use is not the one shipped\nand supported by the Git for Windows project.\n\n> that prints (with colors) an extra ^M (carriage return?) at the end of\n> the gpg lines. As an example, the output of \"git log --show-signature\n> HEAD\" looks like:\n> \n>     $ git log --show-signature HEAD\n>     commit 46c490188ebd216f20c454ee61108e51b481844e (HEAD -> master)\n>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale^M\n>     gpg:                using RSA key ...^M\n>     gpg: Good signature from \"...\" [ultimate]^M\n>     Author: ... <...>\n>     Date:   Sun Mar 4 16:53:06 2018 +0100\n>     ...\n> \n> To help find a fix, I tested the command \"git verify-commit HEAD\" that\n> prints (without colors) the same lines without extra ^M characters.\n> \n>     $ git verify-commit HEAD\n>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale\n>     gpg:                using RSA key ...\n>     gpg: Good signature from \"...\" [ultimate]\n\nMy guess is that the latter command simply does not go through the pager\nwhile the former does.\n\nDo you see the ^M in the output of `git -p verify-commit HEAD`?\n\nCiao,\nJohannes\n"},{"id":"341108","messageId":"CAL+2DvR4ZBicrCYSkQ1jDaWaLJHgp8yVkKQZgxVc9txzHbNFkg@mail.gmail.com","threadId":"47976","inReplyTo":"nycvar.QRO.7.76.6.1803051457570.20700@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz","subject":"Re: [Bug] git log --show-signature print extra carriage return ^M","fromName":"Larry Hunter","fromEmail":"larhun.it@gmail.com","sentAt":"2018-03-06T09:47:10Z","receivedAt":"2018-03-06T09:47:17Z","isPatch":false,"sender":{"key":"larhun.it@gmail.com","avatar":null},"body":"The same ^M is shown in the output of tutorial\n\n    https://www.geekality.net/2017/08/23/setting-up-gpg-signing-for-gitgithub-on-windows/\n\nat item \"4. Verify commit was signed\"\n\nI confirm the output is right (no ^M characters) with commands\n\n    git verify-commit HEAD\n    git -p verify-commit HEAD\n    git verify-commit --v HEAD\n    git verify-commit --raw HEAD\n\nand wrong (ending with ^M characters) with\n\n    git  log --show-signature -1 HEAD\n    git  -p log --show-signature -1 HEAD\n\nI need gpg version 2.1 or greater to generate a gpg key for my windows\nsystem, as stated by the github documentation:\n\n    https://help.github.com/articles/generating-a-new-gpg-key/\n\nthat saves my keys in ~/AppData/Roaming/GnuPG.\n\n2018-03-05 15:29 GMT+01:00 Johannes Schindelin <Johannes.Schindelin@gmx.de>:\n> Hi Larry,\n>\n> On Sun, 4 Mar 2018, Larry Hunter wrote:\n>\n>> There is bug using \"git log --show-signature\" in my installation\n>>\n>>     git 2.16.2.windows.1\n>>     gpg (GnuPG) 2.2.4\n>>     libgcrypt 1.8.2\n>\n> The gpg.exe shipped in Git for Windows should say something like this:\n>\n>         $ gpg --version\n>         gpg (GnuPG) 1.4.22\n>         Copyright (C) 2015 Free Software Foundation, Inc.\n>         License GPLv3+: GNU GPL version 3 or later\n>         <http://gnu.org/licenses/gpl.html>\n>         This is free software: you are free to change and redistribute it.\n>         There is NO WARRANTY, to the extent permitted by law.\n>\n>         Home: ~/.gnupg\n>         Supported algorithms:\n>         Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA\n>         Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,\n>                 CAMELLIA128, CAMELLIA192, CAMELLIA256\n>         Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224\n>         Compression: Uncompressed, ZIP, ZLIB, BZIP2\n>\n> Therefore, the GNU Privacy Guard version you use is not the one shipped\n> and supported by the Git for Windows project.\n>\n>> that prints (with colors) an extra ^M (carriage return?) at the end of\n>> the gpg lines. As an example, the output of \"git log --show-signature\n>> HEAD\" looks like:\n>>\n>>     $ git log --show-signature HEAD\n>>     commit 46c490188ebd216f20c454ee61108e51b481844e (HEAD -> master)\n>>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale^M\n>>     gpg:                using RSA key ...^M\n>>     gpg: Good signature from \"...\" [ultimate]^M\n>>     Author: ... <...>\n>>     Date:   Sun Mar 4 16:53:06 2018 +0100\n>>     ...\n>>\n>> To help find a fix, I tested the command \"git verify-commit HEAD\" that\n>> prints (without colors) the same lines without extra ^M characters.\n>>\n>>     $ git verify-commit HEAD\n>>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale\n>>     gpg:                using RSA key ...\n>>     gpg: Good signature from \"...\" [ultimate]\n>\n> My guess is that the latter command simply does not go through the pager\n> while the former does.\n>\n> Do you see the ^M in the output of `git -p verify-commit HEAD`?\n>\n> Ciao,\n> Johannes\n"},{"id":"346032","messageId":"nycvar.QRO.7.76.6.1804281417410.79@tvgsbejvaqbjf.bet","threadId":"47976","inReplyTo":"CAL+2DvR4ZBicrCYSkQ1jDaWaLJHgp8yVkKQZgxVc9txzHbNFkg@mail.gmail.com","subject":"Re: [Bug] git log --show-signature print extra carriage return ^M","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2018-04-28T12:18:54Z","receivedAt":"2018-04-28T12:19:00Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Larry,\n\n\nOn Tue, 6 Mar 2018, Larry Hunter wrote:\n\n> The same ^M is shown in the output of tutorial\n> \n>     https://www.geekality.net/2017/08/23/setting-up-gpg-signing-for-gitgithub-on-windows/\n> \n> at item \"4. Verify commit was signed\"\n\n\nPlease understand that it would be helpful if you could take the lead on\nresolving this issue.\n\nIf you need pointers how to get started with fixing this behavior, please\njust tell us where you got stuck, so we can help you get un-stuck.\n\nCiao,\nJohannes\n\n> I confirm the output is right (no ^M characters) with commands\n> \n>     git verify-commit HEAD\n>     git -p verify-commit HEAD\n>     git verify-commit --v HEAD\n>     git verify-commit --raw HEAD\n> \n> and wrong (ending with ^M characters) with\n> \n>     git  log --show-signature -1 HEAD\n>     git  -p log --show-signature -1 HEAD\n> \n> I need gpg version 2.1 or greater to generate a gpg key for my windows\n> system, as stated by the github documentation:\n> \n>     https://help.github.com/articles/generating-a-new-gpg-key/\n> \n> that saves my keys in ~/AppData/Roaming/GnuPG.\n> \n> 2018-03-05 15:29 GMT+01:00 Johannes Schindelin <Johannes.Schindelin@gmx.de>:\n> > Hi Larry,\n> >\n> > On Sun, 4 Mar 2018, Larry Hunter wrote:\n> >\n> >> There is bug using \"git log --show-signature\" in my installation\n> >>\n> >>     git 2.16.2.windows.1\n> >>     gpg (GnuPG) 2.2.4\n> >>     libgcrypt 1.8.2\n> >\n> > The gpg.exe shipped in Git for Windows should say something like this:\n> >\n> >         $ gpg --version\n> >         gpg (GnuPG) 1.4.22\n> >         Copyright (C) 2015 Free Software Foundation, Inc.\n> >         License GPLv3+: GNU GPL version 3 or later\n> >         <http://gnu.org/licenses/gpl.html>\n> >         This is free software: you are free to change and redistribute it.\n> >         There is NO WARRANTY, to the extent permitted by law.\n> >\n> >         Home: ~/.gnupg\n> >         Supported algorithms:\n> >         Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA\n> >         Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,\n> >                 CAMELLIA128, CAMELLIA192, CAMELLIA256\n> >         Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224\n> >         Compression: Uncompressed, ZIP, ZLIB, BZIP2\n> >\n> > Therefore, the GNU Privacy Guard version you use is not the one shipped\n> > and supported by the Git for Windows project.\n> >\n> >> that prints (with colors) an extra ^M (carriage return?) at the end of\n> >> the gpg lines. As an example, the output of \"git log --show-signature\n> >> HEAD\" looks like:\n> >>\n> >>     $ git log --show-signature HEAD\n> >>     commit 46c490188ebd216f20c454ee61108e51b481844e (HEAD -> master)\n> >>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale^M\n> >>     gpg:                using RSA key ...^M\n> >>     gpg: Good signature from \"...\" [ultimate]^M\n> >>     Author: ... <...>\n> >>     Date:   Sun Mar 4 16:53:06 2018 +0100\n> >>     ...\n> >>\n> >> To help find a fix, I tested the command \"git verify-commit HEAD\" that\n> >> prints (without colors) the same lines without extra ^M characters.\n> >>\n> >>     $ git verify-commit HEAD\n> >>     gpg: Signature made 03/04/18 16:53:06 ora solare Europa occidentale\n> >>     gpg:                using RSA key ...\n> >>     gpg: Good signature from \"...\" [ultimate]\n> >\n> > My guess is that the latter command simply does not go through the pager\n> > while the former does.\n> >\n> > Do you see the ^M in the output of `git -p verify-commit HEAD`?\n> >\n> > Ciao,\n> > Johannes\n> \n"}]}