Skip to content

Commit

Permalink
Fix dpanic issue when logging odd number of args
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paulo Gomes authored and hiddeco committed Mar 25, 2022
1 parent 0e73395 commit 20d8c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/git/libgit2/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "":
Expand Down

0 comments on commit 20d8c5c

Please sign in to comment.