diff --git a/controllers/packagevariants/pkg/controllers/packagevariant/packagevariant_controller.go b/controllers/packagevariants/pkg/controllers/packagevariant/packagevariant_controller.go index 391225fc..3d1d88f6 100644 --- a/controllers/packagevariants/pkg/controllers/packagevariant/packagevariant_controller.go +++ b/controllers/packagevariants/pkg/controllers/packagevariant/packagevariant_controller.go @@ -658,6 +658,8 @@ func (r *PackageVariantReconciler) isUpToDate(pv *api.PackageVariant, downstream // will always be a published revision, so we will need to do an update. return false } + currentUpstreamRevision := upstreamLock.Git.Ref[lastIndex+1:] + return currentUpstreamRevision == pv.Spec.Upstream.Revision } func (r *PackageVariantReconciler) copyPublished(ctx context.Context,