Skip to content

Commit

Permalink
Merge pull request #3122 from buildkite/ignore-empty-submodule-clone-…
Browse files Browse the repository at this point in the history
…configs

Ignore empty submodule clone configs
  • Loading branch information
DrJosh9000 authored Dec 10, 2024
2 parents e948232 + 3f3c53a commit 816d363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/job/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ func (e *Executor) defaultCheckoutPhase(ctx context.Context) error {

args := []string{}
for _, config := range e.GitSubmoduleCloneConfig {
// -c foo=bar is valid, -c foo= is valid, -c foo is valid, but...
// -c (nothing) is invalid.
// This could happen because the env var was set to an empty value.
if config == "" {
continue
}
args = append(args, "-c", config)
}

Expand Down

0 comments on commit 816d363

Please sign in to comment.