From 9a59f80e1c6624c614fffc3b1f5bdc29b6a8ebdf Mon Sep 17 00:00:00 2001 From: Michael Boulton Date: Fri, 14 Aug 2020 16:28:14 +0100 Subject: [PATCH] check head commit when checking all commits are signed --- rebase_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rebase_test.go b/rebase_test.go index 0e2ae4a..b56be72 100644 --- a/rebase_test.go +++ b/rebase_test.go @@ -220,11 +220,9 @@ func TestRebaseGpgSigned(t *testing.T) { func checkAllCommitsSigned(t *testing.T, entity *openpgp.Entity, repo *Repository) { head, err := headCommit(repo) checkFatal(t, err) - defer head.Free() - parent := head.Parent(0) - defer parent.Free() + parent := head err = checkCommitSigned(t, entity, parent) checkFatal(t, err)