Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: object, Fix tag message decoding #1118

Merged
merged 2 commits into from
Apr 20, 2019
Merged

Conversation

filipnavara
Copy link
Contributor

PR #1104 + test. Fixes #1111

The Decode method was adding one too many newlines to the tag message, causing signature verification to fail. This is because in signed tags produced by git, there is a newline after the PGP signature block, resulting in messageAndSig having one extra (empty) []byte element. This caused t.Message to receive one extra newline.

scjudd and others added 2 commits April 20, 2019 20:45
The Decode method was adding one too many newlines to the tag message,
causing signature verification to fail. This is because in signed tags
produced by `git`, there is a newline after the PGP signature block,
resulting in `messageAndSig` having one extra (empty) `[]byte` element.
This caused `t.Message` to receive one extra newline.

Signed-off-by: Spencer Judd <[email protected]>
@mcuadros mcuadros merged commit e5268e9 into src-d:master Apr 20, 2019
@filipnavara filipnavara deleted the fix1104 branch April 21, 2019 05:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message on signed tagged commits contains extra new line
3 participants