Skip to content

Commit 20d8c5c

Browse files
Paulo Gomeshiddeco
Paulo Gomes
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 <paulo.gomes@weave.works>
1 parent 0e73395 commit 20d8c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/git/libgit2/checkout.go

+1-1
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("git submodule recursion not supported by git implementation", "implementation", Implementation)
4242
}
4343
switch {
4444
case opt.Commit != "":

0 commit comments

Comments
 (0)