Skip to content

Commit

Permalink
Merge pull request #478 from buildkite/fix-no-submodules-negation
Browse files Browse the repository at this point in the history
Fix negation of no-submodules option
  • Loading branch information
DrJosh9000 authored Jan 22, 2025
2 parents a84a4f9 + 9ece8ea commit c6caede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/config/checkout_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (co *CheckoutParams) ApplyTo(podSpec *corev1.PodSpec, ctr *corev1.Container
appendToEnvOpt(ctr, "BUILDKITE_GIT_CLEAN_FLAGS", co.CleanFlags)
appendToEnvOpt(ctr, "BUILDKITE_GIT_CLONE_FLAGS", co.CloneFlags)
appendToEnvOpt(ctr, "BUILDKITE_GIT_FETCH_FLAGS", co.FetchFlags)
appendBoolToEnvOpt(ctr, "BUILDKITE_GIT_SUBMODULES", co.NoSubmodules)
appendNegatedToEnvOpt(ctr, "BUILDKITE_GIT_SUBMODULES", co.NoSubmodules)
appendCommaSepToEnv(ctr, "BUILDKITE_GIT_SUBMODULE_CLONE_CONFIG", co.SubmoduleCloneConfig)
co.GitMirrors.ApplyTo(podSpec, ctr)
ctr.EnvFrom = append(ctr.EnvFrom, co.EnvFrom...)
Expand Down

0 comments on commit c6caede

Please sign in to comment.