line, err := bufReader.ReadBytes('\n')
if err != nil {
if err == io.EOF {
+ if message {
+ _, _ = messageSB.Write(line)
+ }
+ _, _ = payloadSB.Write(line)
break readLoop
}
return nil, err
}
} else {
_, _ = messageSB.Write(line)
+ _, _ = payloadSB.Write(line)
}
}
commit.CommitMessage = messageSB.String()
- _, _ = payloadSB.WriteString(commit.CommitMessage)
commit.Signature = &CommitGPGSignature{
Signature: signatureSB.String(),
Payload: payloadSB.String(),