Skip to content

Commit 14cb2a7

Browse files
authored
Merge pull request #479 from kingdonb/fix-commit-verification
2 parents d3ea648 + d400c8e commit 14cb2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/gitrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (r *GitRepositoryReconciler) reconcile(ctx context.Context, repository sour
298298
Namespace: repository.Namespace,
299299
Name: repository.Spec.Verification.SecretRef.Name,
300300
}
301-
var secret *corev1.Secret
301+
secret := &corev1.Secret{}
302302
if err := r.Client.Get(ctx, publicKeySecret, secret); err != nil {
303303
err = fmt.Errorf("PGP public keys secret error: %w", err)
304304
return sourcev1.GitRepositoryNotReady(repository, sourcev1.VerificationFailedReason, err.Error()), err

0 commit comments

Comments
 (0)