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>
This commit is contained in:
parent
0e733953c0
commit
45641b17c7
|
@ -38,7 +38,7 @@ import (
|
||||||
// git.CheckoutOptions.
|
// git.CheckoutOptions.
|
||||||
func CheckoutStrategyForOptions(ctx context.Context, opt git.CheckoutOptions) git.CheckoutStrategy {
|
func CheckoutStrategyForOptions(ctx context.Context, opt git.CheckoutOptions) git.CheckoutStrategy {
|
||||||
if opt.RecurseSubmodules {
|
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 implementation '%s'", Implementation))
|
||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case opt.Commit != "":
|
case opt.Commit != "":
|
||||||
|
|
Loading…
Reference in New Issue