Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore empty submodule clone configs #3122

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

DrJosh9000
Copy link
Contributor

Description

A small bit of hardening - if BUILDKITE_GIT_SUBMODULE_CLONE_CONFIG is set but empty, then GitSubmoduleCloneConfig can be a slice with one element "", causing an invalid Git flag to be appended.

Context

https://coda.io/d/_dHnUHNps1YO#Escalations-by-Assignee_tugT4T3x/r883&view=center

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Copy link
Contributor

@rianmcguire rianmcguire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@DrJosh9000 DrJosh9000 enabled auto-merge December 10, 2024 00:22
@DrJosh9000 DrJosh9000 merged commit 816d363 into main Dec 10, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the ignore-empty-submodule-clone-configs branch December 10, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants