From 793ac413eb81323dc70b70eaae4d711874cc0b49 Mon Sep 17 00:00:00 2001 From: Kyle Ishie Date: Fri, 12 Jan 2024 18:09:52 -0500 Subject: [PATCH] fixes logic error in Depth() libostree option --- internal/plugins/ostree/pkg/libostree/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugins/ostree/pkg/libostree/pull.go b/internal/plugins/ostree/pkg/libostree/pull.go index b29d1fe..80cae32 100644 --- a/internal/plugins/ostree/pkg/libostree/pull.go +++ b/internal/plugins/ostree/pkg/libostree/pull.go @@ -123,7 +123,7 @@ func NoGPGVerifySummary() Option { func Depth(depth int) Option { return func(builder *C.GVariantBuilder, deferFree deferredFreeFn) { // 0 is the default depth so there is no need to add it to the builder. - if depth != 0 { + if depth == 0 { return } key := C.CString("depth")