From 20d8c5cc02db5715ee579156e82a7e11af0693f8 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Thu, 24 Mar 2022 10:33:23 +0000 Subject: [PATCH] Fix dpanic issue when logging odd number of args Info was receiving odd number of arguments leading to: odd number of arguments passed as key-value pairs for logging Signed-off-by: Paulo Gomes --- pkg/git/libgit2/checkout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/git/libgit2/checkout.go b/pkg/git/libgit2/checkout.go index 8e1e5cad9..34450fdb1 100644 --- a/pkg/git/libgit2/checkout.go +++ b/pkg/git/libgit2/checkout.go @@ -38,7 +38,7 @@ import ( // git.CheckoutOptions. func CheckoutStrategyForOptions(ctx context.Context, opt git.CheckoutOptions) git.CheckoutStrategy { if opt.RecurseSubmodules { - logr.FromContextOrDiscard(ctx).Info("git submodule recursion not supported by '%s'", Implementation) + logr.FromContextOrDiscard(ctx).Info("git submodule recursion not supported by git implementation", "implementation", Implementation) } switch { case opt.Commit != "":