hit icon indicating copy to clipboard operation
hit copied to clipboard

GPG signature for a commit is not (un)marshalled properly

Open lehins opened this issue 9 years ago • 0 comments

Whenever a gpg signature is present in a commit it is parsed and formatted in such a way that -----BEGIN PGP SIGNATURE----- ends up being part of the commit extra key instead of value (and has to be part of the key, in case of formatting)

CommitExtra
      { commitExtraKey = "gpgsig -----BEGIN PGP SIGNATURE-----"
      , commitExtraValue =
        "Version: GnuPG v2\n\niQEcBAABCAAGBQJYArwUAAoJEA3rPXrzBY/5JB4IAJJUZsWuxKdMt/ssaG7+g2aK\nMmvnY07iksFyK6ma7eX0juyvLm86q0ewtMUgXQ4orBCgeX3iug51+67+GOgTBXoC\nA/4tN1bjsXJ59p5KQSVZ2AFqosRzzwIJM/1+dJFQtwVYc6qROs0sqleHHGEKhLfB\nxdY+hfzKwCzUqU/f/kTBeaxYspiOs297NhMeaiXlh9sfFHN/EJ0oLjJnrb4kDCxb\n25aL00DA5xAeC8Yd7qUu4RoO7bSYyYJcWM0Na53wcDkJVwnjnGNI2dAtpmeByPfu\nW126XrOw6+ROz+hsAw2ufgCTiFIi39f9yiHDTmIR3EpGVa8ZrcSjU3cULIRWQ/k=\n=7hLk\n-----END PGP SIGNATURE-----\n"
      }
    ]

Other than that, it is formatted and parsed properly, namely, each line of a signature is getting prepended with a space character)

lehins avatar Oct 15 '16 23:10 lehins