From 90e6540bdc5a72ef11c5546b76a41703e7fe5cec Mon Sep 17 00:00:00 2001 From: Michael Boulton Date: Fri, 14 Aug 2020 16:22:43 +0100 Subject: [PATCH] Reuse utility function --- rebase_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebase_test.go b/rebase_test.go index 2c9f5c9..072b276 100644 --- a/rebase_test.go +++ b/rebase_test.go @@ -241,13 +241,13 @@ func checkAllCommitsSigned(t *testing.T, entity *openpgp.Entity, repo *Repositor func checkCommitSigned(t *testing.T, entity *openpgp.Entity, commit *Commit) error { signature, signedData, err := commit.ExtractSignature() if err != nil { - t.Logf("No signature on commit\n%s", commit.RawHeader()+"\n"+commit.RawMessage()) + t.Logf("No signature on commit\n%s", commit.ContentToSign()) return err } _, err = openpgp.CheckArmoredDetachedSignature(openpgp.EntityList{entity}, strings.NewReader(signedData), bytes.NewBufferString(signature)) if err != nil { - t.Logf("Commit is not signed correctly\n%s", commit.RawHeader()+"\n"+commit.RawMessage()) + t.Logf("Commit is not signed correctly\n%s", commit.ContentToSign()) return err }