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 46ddd5e
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(fmt.Sprintf("git submodule recursion not supported by git implementation '%s'", Implementation))
}
switch {
case opt.Commit != "":
Expand Down

0 comments on commit 46ddd5e

Please sign in to comment.