Skip to content

Commit 45641b1

Browse files
Paulo Gomeshiddeco
authored andcommitted
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 <[email protected]>
1 parent 0e73395 commit 45641b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/git/libgit2/checkout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
// git.CheckoutOptions.
3939
func CheckoutStrategyForOptions(ctx context.Context, opt git.CheckoutOptions) git.CheckoutStrategy {
4040
if opt.RecurseSubmodules {
41-
logr.FromContextOrDiscard(ctx).Info("git submodule recursion not supported by '%s'", Implementation)
41+
logr.FromContextOrDiscard(ctx).Info(fmt.Sprintf("git submodule recursion not supported by implementation '%s'", Implementation))
4242
}
4343
switch {
4444
case opt.Commit != "":

0 commit comments

Comments
 (0)