check head commit when checking all commits are signed

This commit is contained in:
Michael Boulton 2020-08-14 16:28:14 +01:00
parent f36992c389
commit 9a59f80e1c
No known key found for this signature in database
GPG Key ID: 8A62CA0BE2E0197E
1 changed files with 1 additions and 3 deletions

View File

@ -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)